Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.83 KB

README.en.md

File metadata and controls

52 lines (39 loc) · 1.83 KB

免费代理池 free-proxy-pool

Description

Collect free http/https/socket proxy from internet

test addr:

set config.ini

[mongodb]
host = localhost # host or ip of mongodb
port = 27017 # port or ip of mongodb    

[webapi]
host = 0.0.0.0 # host or ip of webapi site   
port = 80 # port or ip of webapi site

[func]
freeproxyspider = True # start the process of crawling free http proxy from the network
proxycheckusability = True # start the process of proxy validity check
webapi = True # start webapi

Installation

  1. pip install -r requirements.txt
  2. install mongodb

run

py main.py

MongoDB

backup(run in the root directory of the project)

mongodump -h 127.0.0.1 -d proxies -o mongodb

restore(run in the root directory of the project)

mongorestore -h 127.0.0.1 -d mongodb/proxies

mongoexport

mongoexport -h 127.0.0.1 -d proxies -c proxies -o proxies.json

mongoimport

 mongoimport --db proxies --collection proxies --file proxies.json

freeze

pip freeze > requirements.txt