View Single Post
Old 12-10-2021, 09:13 PM   #1
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,551
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Retrieving longform.org [SSL: CERTIFICATE_VERIFY_FAILED]

Hello

I'm trying to write a recipe for longform.org

If I try to parse index with

Code:
soup = self.index_to_soup('http://longform.org')
I get

Code:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)
When I run python3

Code:
>>> import requests
>>> data = requests.get('http://longform.org').text
everything is fine. But that doesn't work within a recipe b/c the requests library isn't included with calibre

I did the trick with opening the url with chrome and IE but that did not help

Any suggestions? Thanks in advance
Barty is offline   Reply With Quote