I like that shown below is to attract a specific user followers code. I wanted to do to pursue it myself, it just takes a user's followers, but also the followers of followers. An example would be to catch Carl Icahns followers ID and then get followers of ID of those followers. So if I'm following Carl Ikon, then I will be able to regain all my followers too. Also, for some reason I'm calling you instead of every 5,000 followers each time receiving more than 5,000 followers for some reason. Can anyone please help me with this? I would like to know this very much.
import logging import import CSV import twython import json app_key = "**********" app_secret = "******* ***" oauth_token = "***********" oauth_token_secret = "**************" twitter = twython.Twython (app_key, app_secret, oauth_token, oauth_token_secret) followers = twitter.get_followers_ids (SCREEN_NAME = "Carl_C_Icahn" for follower_id in followers): Outfile as print (with "Carl Echhaan followers:", followers) open (with 'carlfollowers.txt', 'A'): json.dump (followers, your Code changes: outfile, sort_keys = true, indent = 4)
import logs Ing import time import cSV import twython json app_key = "**********" app_secret = "**********" oauth_token = "********** * "Oauth_token_secret =" ************* "Twitter = twython.Twython (app_key, app_secret, oauth_token, oauth_token_secret) Followers = twitter.g : ", Follower_id, true_falter_ides (screen_name =" Carl_C_Icahn "is true, indent = 4) with json.dump (follower_id, outfile, sort_keys =) open ('carlfollowers.txt', 'a')
No comments:
Post a Comment