Skip to content

Commit

Permalink
Trying to fix ssl.SSLError
Browse files Browse the repository at this point in the history
Trying to fix ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)
  • Loading branch information
slow-mo committed Jan 12, 2022
1 parent 7b37ac4 commit faf6042
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scraper.py
Expand Up @@ -8,7 +8,11 @@
# expose a way to alter this. So we'll fiddle our environment ourselves
# before our pipeline modules load.
os.environ['SCRAPERWIKI_DATABASE_NAME'] = 'sqlite:///data.sqlite'


# Trying to fix ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)
import certifi
import ssl

USER_AGENT = 'Mozilla/5.0 (X11; Linux i686; rv:64.0) Gecko/20100101 Firefox/64.0'

def parse_lettera(url):
Expand Down

0 comments on commit faf6042

Please sign in to comment.