定时抓取免费代理网站,简易可扩展。(非翻墙)

Germey c562a794ed update readme před 5 roky
proxypool 162542e93e update docker compose před 5 roky
.dockerignore 162542e93e update docker compose před 5 roky
.gitignore d4fca11146 update structure před 5 roky
Dockerfile 162542e93e update docker compose před 5 roky
README.md c562a794ed update readme před 5 roky
docker-compose.yml 162542e93e update docker compose před 5 roky
requirements.txt 162542e93e update docker compose před 5 roky
run.py 162542e93e update docker compose před 5 roky
supervisord.conf 162542e93e update docker compose před 5 roky

README.md

ProxyPool

Docker Pulls

Welcome to ProxyPool.

Requirements

Below is a list of requirements for ProxyPool.

  • Docker
  • Docker-Compose

or

  • Python: >=3.6
  • Redis

Run with Docker

docker-compose up

Run without Docker

Here are steps to run ProxyPool.

Install Redis

You need to install Redis locally or get a Redis server firstly.

Next set Redis environment:

export REDIS_HOST='localhost'
export REDIS_PORT=6379
export REDIS_PASSWORD='foobar'

Also you can just set the Redis Connection String:

export REDIS_CONNECTION_STRING='redis://[password]@host:port'

You can choose one method of above to set Redis environment.

Clone ProxyPool

https://github.com/Python3WebSpider/ProxyPool
cd ProxyPool

Install Requirements

pip3 install -r requirements.txt

Run ProxyPool

You can run all of the processors including Getter、Tester、 Server:

python3 run.py

or run with args to run specific processor:

python3 run.py --processor getter
python3 run.py --processor tester
python3 run.py --processor server

Usage

After running the ProxyPool, you can visit http://localhost:5555/random to access random proxy.

Just enjoy it.