2016-11-17 31 views
0
feedparser.parse('https://habrahabr.ru/rss/feed/posts/6266e7ec4301addaf92d10eb212b4546') 

前一些日子,但現在它不 是python3 feedparset如何解決SSL:CERTIFICATE_VERIFY_FAILED feedparser?

bozo_exception': URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),)} 
+0

可能重複:HTTP: //stackoverflow.com/questions/28282797/feedparser-parse-ssl-certificate-verify-failed – abidibo

回答

0

我也面臨這樣的錯誤

嘗試使用

import feedparser 
import ssl 
ssl._create_default_https_context=ssl._create_unverified_context 

feedparser.parse(rss) #this will work