解决HTTP status code is not handled or not allowed

2020-09-17 09:56:34 浏览数 (1)

代码语言:javascript复制
/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里面添加

代码语言:javascript复制
HTTPERROR_ALLOWED_CODES = [403]#上面报的是403,就把403加入。

0 人点赞