# proxy-pool **Repository Path**: code-thinker/proxy-pool ## Basic Information - **Project Name**: proxy-pool - **Description**: Python实现的代理池,数据来源多个网站,实时检测是否可用,真实有效,可用于爬虫或其它需要使用代理的场景 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-01-10 - **Last Updated**: 2023-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: 代理池, http代理, 免费代理 ## README # proxy-pool ## 简介 本项目是一个从各个免费代理站点拉去http代理的项目,如果你有代理池的需求,可以克隆本项目,本项目免费开源,也可以用于企业或个人进行二次开发。 ### 【代理池】介绍 在做爬虫时,经常遇到IP被封,使用http代理可以解决这个问题,这里是一个代理池项目,用于从多个免费代理平台,获取通过校验可用的http代理。 拉去的数据来源有: - proxylist: http://proxylist.fatezero.org - 66免费代理:http://www.66ip.cn - 89免费代理:https://www.89ip.cn/index_1.html - 云代理:http://www.ip3366.net/free/?stype=1 - 齐云代理:https://proxy.ip3366.net/free/?action=china&page=1 - 快代理:https://www.kuaidaili.com/free/inha - 开心代理:http://www.kxdaili.com/dailiip/1/1.html - proxylistplus代理(国外代理):https://list.proxylistplus.com/Fresh-HTTP-Proxy-List-1 - SEO顾问: https://proxy.seofangfa.com - 太阳http: http://www.taiyanghttp.com/free - 小舒代理:https://www.xsdaili.cn - IP查询网: http://ip.yqie.com/ipproxy.htm 如果你有其他好的代理网站,可以联系我,我们一起完善这个项目。 ## 软件架构 软件大体架构如下图所示: ![软件架构图](./docs/images/soft_struct.png) ## 安装教程 1. 使用pip安装依赖 ```shell pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ ``` 2. 直接运行`main.py`即可 ## 使用说明 1. 配置相关参数 ```shell vi config/settings.py ``` 根据需要配置自己的参数 2. 直接运行`main.py`即可 3. 可以通过api地址,获取可用的代理,如:http://127.0.0.1:8000/api/proxy/random 4. 获取的到代理示例:http://47.243.167.134:8889 ## 打赏 如果你喜欢我的项目,可以进行打赏哦 支付宝打赏: ![支付宝打赏](./docs/images/zhifubao.png) 微信打赏: ![微信打赏](./docs/images/weixin.png) ## 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request ## 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)