Last active
September 16, 2015 13:50
-
-
Save dhesse/7dad4452e7b1abfc724d 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
"""Simple demo script explaining how to extract twitter users' | |
friend lists using the python twitter package.""" | |
import time | |
import twitter | |
api = twitter.Api(consumer_key='your_key', | |
consumer_secret='your_secret', | |
access_token_key='your_token_key', | |
access_token_secret='your_token_secret') | |
while not api.GetRateLimitStatus()\ | |
['resources']['friends']['/friends/ids']['remaining']: | |
time.sleep(60) | |
print list(api.GetFriendIDs(screen_name="NotDirkHesse")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment