PySpider HTTP 599: SSL certificate problem错误的解决方法

[E 160329 11:32:22 base_handler:194] HTTP 599: SSL certificate problem: self signed certificate in certificate chain
    Traceback (most recent call last):
      File "D:\Python27\lib\site-packages\pyspider\libs\base_handler.py", line 187, in run_task
        result = self._run_task(task, response)
      File "D:\Python27\lib\site-packages\pyspider\libs\base_handler.py", line 166, in _run_task
        response.raise_for_status()
      File "D:\Python27\lib\site-packages\pyspider\libs\response.py", line 183, in raise_for_status
        raise http_error

HTTPError: HTTP 599: SSL certificate problem: self signed certificate in certificate chain

解决方法:

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

并参考http://blog.csdn.net/asmcvc/article/details/51016485文末。

你可能感兴趣的:(PySpider HTTP 599: SSL certificate problem错误的解决方法)