-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fix SSL: CERTIFICATE_VERIFY_FAILED? #84
Comments
|
This is due to Python starting to apply certificate verification by default for stdlib http clients. A great explanation of the rationale of the change can be found in this Redhat article, along with information regarding how to control and troubleshoot this new situation. Both previous references explain how to avoid certificate verification in single connections: Currently, feedparser users can only avoid certificate verification by monkeypatching (see previous links and this stackoverflow question), which is highly discouraged as it affects the whole application. It seems that this issue could be fixed if As a sidenote, Firefox is not so restrictive with feeds from sites with invalid certificates and you can access them without a warning, even if visiting the main site will rise a big warning screen. |
|
feedparser will eventually lose its internal HTTP code, likely in favor of using requests. I recommend that developers begin using standard HTTP clients like the requests module to address intricacies like SSL verification. |
{'feed': {}, 'entries': [], 'bozo': 1, 'bozo_exception': URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),)}It works some day ago, but now doesn't.
feedparser.parse('https://habrahabr.ru/rss/feed/posts/5d0c9b4397559e2e7cb380b29ec8151b/')The text was updated successfully, but these errors were encountered: