I am attempting to scrape text off of websites, and I am using the requests module to do so.
With the given code (Facebook as an example here)
requests.get('http://facebook.com')
I receive back the following error:
SSLError: HTTPSConnectionPool(host='facebook.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
I have tried the following with no luck:
pip install certifi
pip install certifi_win32
Any help would be greatly appreciated! Thank you!
I had the same problem, but with a tiny difference.
I was trying to reach the website by IP
And all the solutions provided was failing, until I used the domain name instead of the IP.