The Python Oracle

Scraping: SSL: CERTIFICATE_VERIFY_FAILED error for http://en.wikipedia.org

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Scraping: Ssl: Certificate_verify_failed Error For Http://En.Wikipedia.Org
00:51 Accepted Answer Score 964
01:13 Answer 2 Score 220
01:25 Answer 3 Score 43
01:49 Answer 4 Score 36
02:10 Answer 5 Score 28
02:23 Thank you

--

Full question
https://stackoverflow.com/questions/5023...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #webscraping #beautifulsoup #scrapy #sslcertificate

#avk47



ACCEPTED ANSWER

Score 1002


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




ANSWER 2

Score 44


This terminal command:

open /Applications/Python\ 3.7/Install\ Certificates.command

Found here: https://stackoverflow.com/a/57614113/6207266

Resolved it for me. With my config

pip install --upgrade certifi

had no impact.




ANSWER 3

Score 35


To solve this:

All you need to do is to install Python certificates! A common issue on macOS.

Open these files:

Install Certificates.command
Update Shell Profile.command

Simply Run these two scripts and you wont have this issue any more.

Hope this helps!




ANSWER 4

Score 27


For novice users, you can go in the Applications folder and expand the Python 3.7 folder. Now first run (or double click) the Install Certificates.command and then Update Shell Profile.command

enter image description here