Django app that makes a graph dataset with your friends on twitter
Django app that makes a graph dataset with your friends on twitter, on GDF format.
This app saves information about you, all people you follow on Twitter and all people they follow using Tweepy. This data is used to make a social graph in which you can study relationships between your friends on Twitter.
For example, my social graph, made on Gephi, is:
Once you've cloned the repository, follow these steps to make your own Twitter friends graph:
Create a Twitter App on the Twitter Apps Site
Save your keys as environment variables:
$ export TWITTER_CONSUMER_KEY=your_twitter_consumer_key
$ export TWITTER_CONSUMER_SECRET=your_twitter_consumer_secret
$ export TWITTER_ACCESS_TOKEN=your_twitter_access_token
$ export TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
manage.py
file:$ cd TwitterFriends/
$ python manage.py migrate
save_friends.py
to start saving users from Twitter. This step may take a long time, it depends on how big your Twitter Network is.python save_friends.py
python create_friendships.py
python manage.py runserver
Open http://127.0.0.1:8000/
in your browser.
Download the network on the format you wish.