天天看點

解決HTTP status code is not handled or not allowed

/Books/>: HTTP status code is not handled or not allowed
2017-11-04 17:21:38 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 http://www.dmoz.org/Computers/Programming/Languages/Python
/Resources/>: HTTP status code is not handled or not allowed           

複制

解決:在settings裡面添加

HTTPERROR_ALLOWED_CODES = [403]#上面報的是403,就把403加入。           

複制