pyspider报错: HTTP 599: SSL certificate problem: self signed certificate in certificate chain解决方案

出现上述问题,可以在抓取函数的crawl 方法中加入忽略证书验证,validate_cert=False

即:self.crawl('__START_URL__', callback=self.index_page, validate_cert=False)

validate_cert

遇到HTTPS类型的URL时是否验证证书,默认值:True.

问题解决

猜你喜欢

转载自blog.csdn.net/dcf869009372/article/details/81106483