Created
March 29, 2017 13:39
-
-
Save jinie/5199b027e9a37116f50814814c3c69c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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