Python pyspider HTTP 599 錯誤

PySpider 框架爬蟲運行代碼後出現 HTTP 599: SSL certificate problem: unable to get local issuer certificate錯誤框架

錯誤緣由:ide

請求 https 開頭的網址,SSL 驗證錯誤,證書有誤。url

解決方法:get

添加參數  validate_cert=Falsedate

使用 self.crawl(url, callback=self.index_page, validate_cert=False)請求

相關文章
相關標籤/搜索