All Projects → mgmacias95 → TwitterFriends

mgmacias95 / TwitterFriends

Licence: GPL-3.0 license
Django app that makes a graph dataset with your friends on twitter

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to TwitterFriends

GPUGraphLayout
An experimental GPU accelerated implementation of ForceAtlas2
Stars: ✭ 40 (+42.86%)
Mutual labels:  gephi
gephi twitter media downloader
A small script designed to take either a .csv of Tweet ids, or the export from Gephi's TwitterStreamingImporter Plugin and download related Tweet media.
Stars: ✭ 41 (+46.43%)
Mutual labels:  gephi
TwitterSearch2Gephi
This windows CLI app lets you collect data from twitter via REST API and convert it into a CSV data set that can be used with Gephi. Other social networks (Reddit, Youtube, WWW) are also supported.
Stars: ✭ 21 (-25%)
Mutual labels:  gephi
gephi-tutorials
Open and collaborative tutorials for Gephi
Stars: ✭ 97 (+246.43%)
Mutual labels:  gephi
graphstore
Fast in-memory graph structure, powering Gephi
Stars: ✭ 64 (+128.57%)
Mutual labels:  gephi
citation map
Create a Gephi Citation Graph based on Text Analysis of PDFs from Zotero
Stars: ✭ 91 (+225%)
Mutual labels:  gephi
graph datasets
A Repository of Benchmark Graph Datasets for Graph Classification (31 Graph Datasets In Total).
Stars: ✭ 227 (+710.71%)
Mutual labels:  graph-dataset

TwitterFriends


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:

graph

How to use

Once you've cloned the repository, follow these steps to make your own Twitter friends graph:

  1. Create a Twitter App on the Twitter Apps Site

  2. 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
  1. Migrate the Django database. You must be on the same directory as manage.py file:
$ cd TwitterFriends/
$ python manage.py migrate
  1. Once you've done the migration, run the script 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
  1. Once you've saved all users (friends and friends of your friends) it's time to create relationships between the users.
python create_friendships.py
  1. At this step, we have all data we need. Now let's export the data. Run the server:
python manage.py runserver
  1. Open http://127.0.0.1:8000/ in your browser.

  2. Download the network on the format you wish.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].