Created
February 25, 2009 17:05
-
-
Save drewconway/70278 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 | |
import networkx as NX | |
# Create an authenticated Api object in order to download user data | |
api_user='drewconway' | |
api_pswd='peugeot' | |
api=twitter.Api(username=api_user,password=api_pswd) | |
# The seed user to be analyzed | |
seed='drewconway' | |
# Now create network | |
k=2 # Number of snowball rounds (WARNING: k>2 will most certainly exceed the Twitter API rate limit) | |
twitter_net=snowball_build(api,seed,k) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment