Scrapy爬虫报错HTTP status code is not handled or not allowed

Scrapy爬虫报错HTTP status code is not handled or not allowed,第1张

爬取网页显示403 HTTP status code is not handled or not allowed

解决方法:

在settings.py里把代理关掉:

DOWNLOADER_MIDDLEWARES = {

'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware': None,

}

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/797481.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-06
下一篇2022-05-06

发表评论

登录后才能评论

评论列表(0条)

    保存