{"id":13892823,"url":"https://github.com/mgmacias95/TwitterFriends","last_synced_at":"2025-07-17T06:31:12.820Z","repository":{"id":87853934,"uuid":"77794910","full_name":"mgmacias95/TwitterFriends","owner":"mgmacias95","description":"Django app that makes a graph dataset with your friends on twitter","archived":false,"fork":false,"pushed_at":"2017-05-26T21:13:14.000Z","size":13500,"stargazers_count":35,"open_issues_count":4,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-27T05:37:40.068Z","etag":null,"topics":["django","gephi","graph","graph-dataset","social-graph","twitter"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgmacias95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-01T20:15:46.000Z","updated_at":"2023-12-25T17:27:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cbb9d6a-bae2-44f2-9b50-7d3c55499723","html_url":"https://github.com/mgmacias95/TwitterFriends","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmacias95%2FTwitterFriends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmacias95%2FTwitterFriends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmacias95%2FTwitterFriends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmacias95%2FTwitterFriends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgmacias95","download_url":"https://codeload.github.com/mgmacias95/TwitterFriends/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214230569,"owners_count":15702599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","gephi","graph","graph-dataset","social-graph","twitter"],"created_at":"2024-08-06T17:01:15.146Z","updated_at":"2024-08-06T17:03:00.283Z","avatar_url":"https://github.com/mgmacias95.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# TwitterFriends\n\n![](TwitterFriends.png)\n\n------\nDjango app that makes a graph dataset with your friends on twitter, on GDF format.\n\nThis app saves information about you, all people you follow on Twitter and all people they follow using [Tweepy](https://github.com/tweepy/tweepy). This data is used to make a social graph in which you can study relationships between your friends on Twitter.\n\nFor example, my social graph, made on Gephi, is:\n\n![graph](graph.png)\n\n## How to use\n\nOnce you've cloned the repository, follow these steps to make your own Twitter friends graph:\n\n1. Create a Twitter App on the [Twitter Apps Site](https://apps.twitter.com/)\n\n2. Save your keys as __environment variables__:\n\n  ```\n  $ export TWITTER_CONSUMER_KEY=your_twitter_consumer_key\n  $ export TWITTER_CONSUMER_SECRET=your_twitter_consumer_secret\n  $ export TWITTER_ACCESS_TOKEN=your_twitter_access_token\n  $ export TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret\n  ```\n\n3. Migrate the Django database. You must be on the same directory as `manage.py` file:\n\n  ```\n  $ cd TwitterFriends/\n  $ python manage.py migrate\n  ```\n\n4. 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.\n\n  ```\n  python save_friends.py\n  ```\n\n5. Once you've saved all users (friends and friends of your friends) it's time to create relationships between the users.\n\n  ```\n  python create_friendships.py\n  ```\n\n6. At this step, we have all data we need. Now let's export the data. Run the server:\n\n  ```\n  python manage.py runserver\n  ```\n\n7. Open `http://127.0.0.1:8000/` in your browser.\n\n8. Download the network on the format you wish.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgmacias95%2FTwitterFriends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgmacias95%2FTwitterFriends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgmacias95%2FTwitterFriends/lists"}