Im building a Web Scapper, when testing on venv -> [SSL: CERTIFICATE_VERIFY_FAILED] But, when I'm testing on ipython shell -> Perfectly good
I wondering what the root problem is? Thanks for your help!`from urllib.request import urlopen
from bs4 import BeautifulSoup import subprocess
html = urlopen('http://www.pythonscraping.com/pages/page3.html') bs = BeautifulSoup(html, 'lxml') html_tags = bs.prettify()`
Try installing
pip install certifiwith your venv and add another valid certificate from any website with https:10 ways to get valid ssl
Also this is how you add a certificate to
certifilibrary:adding certs to requests