{"id":23159793,"url":"https://github.com/edent/twitter-networks","last_synced_at":"2026-03-06T16:03:27.380Z","repository":{"id":29396740,"uuid":"32931985","full_name":"edent/Twitter-Networks","owner":"edent","description":"Create a directed network of Twitter followers.","archived":false,"fork":false,"pushed_at":"2022-01-13T15:09:07.000Z","size":8,"stargazers_count":70,"open_issues_count":3,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-30T02:06:49.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"edent","patreon":"edent","open_collective":"edent","ko_fi":"edent","tidelift":null,"community_bridge":null,"custom":"https://www.amazon.co.uk/hz/wishlist/ls/13GFCFR2B2IX4?tag=edentgithub-21"}},"created_at":"2015-03-26T14:25:01.000Z","updated_at":"2024-10-07T20:16:35.000Z","dependencies_parsed_at":"2022-08-03T12:00:40.987Z","dependency_job_id":null,"html_url":"https://github.com/edent/Twitter-Networks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edent/Twitter-Networks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2FTwitter-Networks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2FTwitter-Networks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2FTwitter-Networks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2FTwitter-Networks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edent","download_url":"https://codeload.github.com/edent/Twitter-Networks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2FTwitter-Networks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30184885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-17T22:48:14.323Z","updated_at":"2026-03-06T16:03:27.364Z","avatar_url":"https://github.com/edent.png","language":"Python","funding_links":["https://github.com/sponsors/edent","https://patreon.com/edent","https://opencollective.com/edent","https://ko-fi.com/edent","https://www.amazon.co.uk/hz/wishlist/ls/13GFCFR2B2IX4?tag=edentgithub-21"],"categories":[],"sub_categories":[],"readme":"# Twitter Network Graphs\nCreate a directed network of Twitter followers.\nBased on https://shkspr.mobi/blog/2015/03/this-is-what-a-graph-of-8000-fake-twitter-accounts-looks-like/\n\nThese scripts work in three parts.\n\n1. Taking an initial user, download information about who they follow. Repeat recursively.\n2. Generate a directed graph.\n3. Draw an image of the graph.\n\n[![Buy me a coffee](https://www.ko-fi.com/img/donate_sm.png)](https://ko-fi.com/edent)\n\n\n## Usage\n\n### Extract The Information\n* Choose the user you wish to track - for example `@edent`.\n* Decide what recursive depth you want to go.  A depth of 1 or 2 should be done in a few hours (depending on how many people they are following), a depth of 5 can take several days.\n\n    python GetFollowing.py -s edent -d 2\n\nThis will generate a directory structure like\n```\n.\n├── following\n│   ├── edent.csv\n│   ├── alice.csv\n│   ├── bob.csv\n│   └── carol.csv\n└── twitter-users\n    ├── 3104869030.json\n    ├── 3105479302.json\n    ├── 3111045413.json\n    └── 3112012750.json\n```\n\nThe `following` directory is contains the Twitter Usernames. Each is a `.csv` file showing who they are following.\n\nThe `twitter-users` directory contains a `.json` representation of each user.  The file name is their Twitter ID.\n\n### Generate The Network\n\nThis script parses the `.csv` files and creates a new `.csv` which contains the Following graph.\n\n    python GenerateNetwork.py -s edent\n    \nThe file `twitter_network.csv` contains a comma delimited graph\n\n```\n3112012750,3111045413,1\n3111045413,3111252693,2\n```\n\nColumn 1 is the Twitter ID of a User.  Column 2 is the ID of a User they follow.  Column 3 is the number of followers the User has.\n\n### Draw The Graph\n\nIf you want to create a visual representation, you can import `twitter_network.csv` into your favourite stats package.  Or, you can run\n\n    python DrawGraph.py\n    \n## Credits\n\nSome scripts based on http://mark-kay.net/2014/08/15/network-graph-of-twitter-followers/\n\nWith permission granted from the original author to adapt https://twitter.com/markleekay/status/574362042204815361\n\nFor more information, please see https://shkspr.mobi/blog/2015/03/this-is-what-a-graph-of-8000-fake-twitter-accounts-looks-like/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedent%2Ftwitter-networks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedent%2Ftwitter-networks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedent%2Ftwitter-networks/lists"}