Skip to content

wang-weart/ProxyPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyPool

Requirements

  • Docker

    or

  • Python: >=3.6

  • Redis

  • Environment: Virtual Env

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.

About

An Efficient ProxyPool with Getter, Tester and Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Dockerfile 0.7%