【发布时间】:2016-07-14 04:54:25
【问题描述】:
我们使用 scrapy + splash 进行爬网,并且我们希望使用多个代理。但是splash只支持单代理https://splash.readthedocs.io/en/stable/api.html#proxy-profiles。
[proxy]
; required
host=proxy.crawlera.com
port=8010
; optional, default is no auth
username=username
password=password
; optional, default is HTTP. Allowed values are HTTP and SOCKS5
type=HTTP
scrapy+splash爬取时如何使用多个代理?
【问题讨论】:
-
“只支持一个代理”是什么意思?这不是真的,您可以使用不同的代理创建各种配置文件,并且对于每个请求,您可以告诉爬虫您要使用哪个配置文件,使爬虫使用不同的进程
标签: proxy scrapy scrapy-splash