Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSL: CERTIFICATE_VERIFY_FAILED] on example site #103

Open
erischon opened this issue Dec 18, 2021 · 3 comments
Open

[SSL: CERTIFICATE_VERIFY_FAILED] on example site #103

erischon opened this issue Dec 18, 2021 · 3 comments

Comments

@erischon
Copy link

erischon commented Dec 18, 2021

Hi,

I can't anymore use the example site.

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)>

Can you renewal the certificate ? ;)

Thx,


To bypass the problem I use requests not urlllib :

  • requests.get("url", verify=False) instead of urlopen()
  • BeautifulSoup(html.content, 'html.parser') instead of BeautifulSoup(html.read(), 'html.parser')
@JosephWhang
Copy link

JosephWhang commented Dec 18, 2021 via email

@REMitchell
Copy link
Owner

@erischon Hi -- thanks for the heads up! Re-issued the certificate and tested, looks good now :)

@gitchegumee11
Copy link

Hi Ryan,

The Chapter 4 scripts don't work for me unless I import ssl and create unverified context. Can you help with why this is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants