问题
Is there a better way to get a list of followers screen names with Tweepy than this:
for follower in api.followers_ids('twitter'):
print api.get_user(follower).screen_name
回答1:
I think this is more efficient:
for user in tweepy.Cursor(api.followers, screen_name="twitter").items():
print user.screen_name
FYI, it uses followers/list twitter API call.
来源:https://stackoverflow.com/questions/17455107/the-best-way-to-get-a-list-of-followers-in-python-with-tweepy