mikhailklassen / Mining-the-Social-Web-3rd-Edition

The official online compendium for Mining the Social Web, 3rd Edition (O'Reilly, 2018)
Other
922 stars 486 forks source link

SSL: CERTIFICATE_VERIFY_FAILED #47

Open multitudes opened 4 years ago

multitudes commented 4 years ago

I followed all steps in the book till example 1-1. I created my keys and registered an app on the website. The keys are working because I tested with another older python program. (with the twurl module disabling the ssl certification checks) The error here is 'SSL: CERTIFICATE_VERIFY_FAILED' Is there an extra step I need to fro to get it working? I am working with python 3.8 and I have the Jupiyter notebooks installed. The first part of the code is ok. I created a twitter_api object successfully twitter_api = twitter.Twitter(auth=auth) but this fails: world_trends = twitter_api.trends.place(_id=1) with the error urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>

Anybody with the same problem?

kikiiiiii commented 4 years ago

I saw the same issue, any solution ?

andrea-poggi commented 4 years ago

Very same problem for me too: python 3.7 and jupyter notebook, cannot get this example to work.I found many people having these issue, but no solution worked for me.