python - Wrong followers number -


i'm using tweepy , count number of followers :

i = 0 follower in tweepy.cursor(api.followers).items():     followers_results[follower.id] = follower.screen_name     += 1 print(i) 

but obtain different result if :

auth = tweepy.oauthhandler('key', 'consumer_secret') auth.set_access_token('access_token', 'access_token_secret') api = tweepy.api(auth, wait_on_rate_limit=true) user = api.get_user('username') print (user.followers_count) 

it seems 2nd method gives real number of followers (according account page on twitter) , 1st gives "number of followers - 3".

why both method don't give same result ? , 1 should trust ?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -