Scraping: SSL: CERTIFICATE_VERIFY_FAILED error for http://en.wikipedia.org
Once upon a time I stumbled with this issue. If you're using macOS go to Macintosh HD > Applications > Python3.6 folder (or whatever version of python you're using) > double click on "Install Certificates.command" file. :D
to use unverified ssl you can add this to your code:
import sslssl._create_default_https_context = ssl._create_unverified_context
To solve this:
All you need to do is to install Python certificates! A common issue on macOS.
Open these files:
Install Certificates.commandUpdate Shell Profile.command
Simply Run these two scripts and you wont have this issue any more.
Hope this helps!