Certificate verify failed

I’ve got a couple of scrapers which both started consistently failing 5 days ago with the error

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


Both of them run on my local machine. Examples of the URLs I’m scraping are:



You should also find both of those URLs will load in a web browser.

I should be able to work around it by switching them to use HTTP instead of HTTPS if you don’t have any suggestions, but the fact that they are contacting unrelated servers and both started failing on the same day suggests there may be a problem which is worth looking at.


Thank you for reporting this @chris48s - it’s really helpful. I think this issue is related to:

OK cheers. For the moment I’ve switched them to use HTTP instead which does work.

If you find a fix and want me to test it, give me a shout. I can switch them back and see what happens.