scrapy proxychraw代理中间件:scrapy的proxychraw接口中间件
scrapy-proxycrawl-middleware的Python项目详细描述
Scrapy的ProxyCrawl API中间件
使用带有普通令牌或javascript令牌的ProxyCrawl服务处理Scrapy请求
安装
选择安装方式:
- 在您的scrapy项目中克隆存储库并运行以下命令:
python setup.py install
- 或者使用PyPipython包管理器。
pip install scrapy-proxycrawl-middleware
然后在剪贴簿中settings.py
添加以下行:
# Activate the middlewarePROXYCRAWL_ENABLED=True# The ProxyCrawl API token you wish to use, either normal of javascript tokenPROXYCRAWL_TOKEN='your token'# Enable the middlewareDOWNLOADER_MIDDLEWARES={'scrapy_proxycrawl.ProxyCrawlMiddleware':610}
如果您有问题或需要使用库的帮助,请打开一个问题或contact us。
2019 ProxyCrawl版权所有