0

i am trying to get access to some user info from Twitter API using api.lookup_users . getting this error when i ran below code .


import tweepy 

consumer_key = "" 
consumer_secret = "" 
access_token = "" 
access_token_secret = "" 
   
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) 
   
auth.set_access_token(access_token, access_token_secret) 
  
api = tweepy.API(auth) 
user_ids = [57741058, 4802800777, 1037141442] 
  
users = api.lookup_users(user_ids)

TweepError: Failed to send request: HTTPSConnectionPool(host='api.twitter.com', port=443): Max retries exceeded with url: /1.1/users/lookup.json?user_id=572332655397629952%2C551659627872415744 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

1 Answer 1

0

as u can see in the error this is a SSL failiur. check this link for more info. this also might help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.