I am new to Python and coding and was trying to learn web scraping. I am getting the certificate verification error. I have read other posts suggesting setting (verify = False)
but others discouraged this for safety reasons.
I tried to install pip3 install certifi
and I get (Requirement already satisfied:)
Code line:
urllib.request.urlopen("https://automatetheboringstuff.com").read()
Error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>
I tried other websites, like google and yahoo which appear safe and Safari is accepting its certificate, but when I try with Python I get the same error.
Is there a safe solution to this?