0

I am authenticating with my own user id.

auth = tweepy.OAuthHandler(consumer_key, consumer_secret) 

auth.set_access_token(access_token, access_token_secret) 

api = tweepy.API(auth, wait_on_rate_limit=True) 

for fr in tweepy.Cursor(api.get_friends, user_id = "UserWhoseFriendsIWant").items(1400):    
    print(fr.screen_name) 

When I run this program, it returns my friends (i.e. the id with which I authenticated to initialize the var auth & doesn't return the friends of user "UserWhoseFriendsIWant".

What am I doing wrong?

I am using Tweepy 4.10.0.

user93353
  • 13,733
  • 8
  • 60
  • 122

0 Answers0