You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SSL: CERTIFICATE_VERIFY_FAILED] on pythonscraping #106
Activity
JosephWhang commentedon May 6, 2022
scarbear06 commentedon Jun 21, 2022
@Ryan-Bringenberg you need to use this code
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
Example:
from urllib.request import urlopen
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
html = urlopen('http://pythonscraping.com/pages/page1.html')
print(html.read())
JosephWhang commentedon Jun 21, 2022
Xnac commentedon Jun 24, 2022
I update my system, in conda: conda update -n base -c defaults conda
gitchegumee11 commentedon Apr 15, 2024
@scarbear06 - Why is that not included in the book already? Or is there a way to update our system to have that automatically run with the script?