抓取免费代理并维护基于redis的代理池。Free proxy IP for common work.
Free proxy IP for common work (made by python3).
本项目原本是自用的免费代理池,后来用过项目Germey/ProxyPool后,参考Germey的思路,给项目做了简单的web端和api。
项目特性:
sudo apt-get install redis-server
pip3 install requests bs4 Flask lxml redis
python web_app.py
默认开放公网访问
如果需要修改ip和端口,编辑 web_app.py
最后一行,修改host和port的值即可
app.run(host="0.0.0.0", port=7865)
访问主页
http://192.168.70.40:7865/
http://192.168.70.40:7865/count
http://192.168.70.40:7865/random_http
返回 ip:port
字符串
http://192.168.70.40:7865/random_https
返回 ip:port
字符串