Skip to content

Instantly share code, notes, and snippets.

@jinie
Created March 29, 2017 13:39
Show Gist options
  • Save jinie/5199b027e9a37116f50814814c3c69c2 to your computer and use it in GitHub Desktop.
Save jinie/5199b027e9a37116f50814814c3c69c2 to your computer and use it in GitHub Desktop.
import twitter
api = twitter.Api(consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_token_key=access_token,
access_token_secret=access_secret)
u1 = api.GetFollowerIDs(screen_name='foosel')
u2=api.GetFollowerIDs(screen_name='OctoPrint3D')
print("@foosel follower count : {0}".format(len(u1)))
print("@OctoPrint3D follower count : {0}".format(len(u2)))
print("People following both accounts : {0}".format(len(set(u2).intersection(u1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment