# github,下载免费代理池开源代码
# git clone git@github.com:jhao104/proxy_pool.git
# pycharm打开,修改配置文件(reids地址修改)
# 启动爬虫:
python proxyPool.py schedule
# 启动服务:
python3 proxyPool.py server
# 随机获取一个代理
requests.get("http://127.0.0.1:5010/get/").json()
#删除一个代理
requests.get("http://127.0.0.1:5010/delete/?proxy={}".format(proxy))
原文:https://www.cnblogs.com/pythonwl/p/13433199.html