1. 程式人生 > >爬蟲代理squid

爬蟲代理squid

spider style 代理服務 code 需要 好的 代理服務器 文件 onf

1 yum -y install squid

配置文件一般是在/etc/squid3/下的squid.conf文件

pyspider使用的時候只需要設置代理服務器為你配置好的服務器的IP就可以了
1 class Handler(BaseHandler):
2     crawl_config = {
3         proxy: 127.0.0.1:6666
4     }

爬蟲代理squid