How to increase Scrapy crawling speed?

孤人 提交于 2020-01-14 14:07:33

问题


I am using Scrapy to crawl websites and extract data to a json file, but I've found that for some sites the crawler takes ages to crawl the complete website.

My question is: How can I minimize the time taken to crawl?


回答1:


Try tuning the CONCURRENT_ITEMS, CONCURRENT_REQUESTS, CONCURRENT_REQUESTS_PER_DOMAIN and other settings.

For full list of settings, see http://doc.scrapy.org/en/latest/topics/settings.html



来源:https://stackoverflow.com/questions/19109871/how-to-increase-scrapy-crawling-speed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!