1
votes

I test webscraping on localhost using requests library to open and get website content. When I test on my localhost some website it's work perfectly.

But the same script, the same tested URL on producetion server return:

HTTPSConnectionPool(host='example.com', port=443): Max retries exceeded with url: /somewhere.html (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Anybody know what is the difference?

1

1 Answers

0
votes

Give this a try: (See here for more)

requests.get('your_url_here', verify=False)