Skip to content

Instantly share code, notes, and snippets.

@edsu
Last active June 1, 2019 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/a0ec254a8476e20b33f8c61d93963b31 to your computer and use it in GitHub Desktop.
Save edsu/a0ec254a8476e20b33f8c61d93963b31 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
import twarc
# usage: followers.py <screen_name>
screen_name = sys.argv[1]
twitter = twarc.Twarc()
follower_ids = twitter.follower_ids(screen_name)
for user in twitter.user_lookup(follower_ids):
print('{screen_name},{followers_count}'.format(**user))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment