# squid_proxy_pool **Repository Path**: nullval/squid_proxy_pool ## Basic Information - **Project Name**: squid_proxy_pool - **Description**: python IP 代理池 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2018-11-09 - **Last Updated**: 2022-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # squid 代理池搭建 ### 简介 使用squid以及收费代理搭建爬虫代理池,自动获取最新可用代理并写入squid配置文件。 具体介绍及思路参考文章:[自己搭建亿级爬虫IP代理池](http://www.xnathan.com/2017/03/02/squid-proxy-pool/) ### 运行 1. 备份原始squid配置文件 `cp /etc/squid/squid.conf /etc/squid/squid.conf` 2. 购买[站大爷](http://ip.zdaya.com)短效代理API,修改zdy.py,将`api_url = 'http://s.zdaye.com/?api=YOUR_API&count=100&fitter=1&px=2'`改为自己的api地址 3. 运行zdy.py ### 检测 修改test_proxy.py中`139.xxx.xxx.66:3188`为自己的squid服务器地址,每次运行test_proxy.py都会有不同的ip,表明代理搭建成功。