binux / pyspider

A Powerful Spider(Web Crawler) System in Python.
http://docs.pyspider.org/
Apache License 2.0
16.49k stars 3.69k forks source link

HTTP 599: SSL certificate problem: unable to get local issuer certificate #728

Open shaoxyz opened 7 years ago

shaoxyz commented 7 years ago

Expected behavior

Run my spider

Actual behavior

Exception: HTTP 599: SSL certificate problem: unable to get local issuer certificate

How to reproduce

I don't know, there are many solutions tell to addvalidate_cert=False in craw function, it doesn't work for me .

ZhangSanMo commented 7 years ago

Do you insertvalidate=False int a correct way?

kirtcathey commented 6 years ago

Ummmmm.... I'm getting the same error. Would have been nice if this was answered to closure 9 months ago. Where does validate=False get set? And wouldn't it be nice if that was somewhere in the introduction or tutorial?

Northxw commented 5 years ago

我是国人,直接上中文了啊! https://www.jianshu.com/p/6900cce4e488 刚整理的599 解决方案,如果解决了你的问题,记得给个小心心

townechow commented 5 years ago

我也遇到了同样的问题: Exception: HTTP 599: SSL certificate problem: unable to get local issuer certificate。网上搜到的解决方法主要有两种:一个是添加validatecert=False,另一个是替换pyspider文件夹内所有文件。但是问题都不得解。然后发现以上两个方法解决的问题是:HTTPError: HTTP 599: SSL certificate problem: self signed certificate in certificate chain。与我遇到的问题不一样!跪求大神解答$$

MagTun commented 5 years ago

Try adding validate_cert=False to the self.crawl. Like this: self.crawl('http://scrapy.org/', callback=self.index_page, validate_cert=False)

zoxm commented 4 years ago

我在windows上安装就有599Exception: HTTP 599: SSL certificate problem: unable to get local issuer certificate这个问题,尝试了你们常说的两个方法,一个是加参数validate_cert=False,一个是将github的pyspider文件夹替换。都没有解决。后来换管理员的cmd启动就没有这个问题了。 但是这次我是部署在linux上,本来就已经是root用户启动了,我实在没有想到办法了