Skip to content

Instantly share code, notes, and snippets.

@edsu edsu/followers.py
Last active Jun 1, 2019

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.