How to handle a 429 Too Many Requests response in Scrapy?

后端 未结 3 1042
深忆病人
深忆病人 2020-12-28 22:54

I\'m trying to run a scraper of which the output log ends as follows:

2017-04-25 20:22:22 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <42         


        
3条回答
  •  死守一世寂寞
    2020-12-28 23:18

    You can use HTTPERROR_ALLOWED_CODES =[404,429]. I was getting 429 HTTP code and I just allowed it and then problem fixed. You can allow the HTTP code that you are getting in terminal. This may be solve your problem.

提交回复
热议问题