{"id":13494957,"url":"https://github.com/x0rz/tweets_analyzer","last_synced_at":"2025-10-17T21:25:24.987Z","repository":{"id":16431556,"uuid":"79932540","full_name":"x0rz/tweets_analyzer","owner":"x0rz","description":"Tweets metadata scraper \u0026 activity analyzer","archived":false,"fork":false,"pushed_at":"2023-11-14T07:28:22.000Z","size":64,"stargazers_count":2973,"open_issues_count":39,"forks_count":454,"subscribers_count":126,"default_branch":"master","last_synced_at":"2025-04-13T21:34:02.786Z","etag":null,"topics":["analysis","privacy","python","twitter"],"latest_commit_sha":null,"homepage":"","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/x0rz.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T16:56:12.000Z","updated_at":"2025-04-13T03:30:23.000Z","dependencies_parsed_at":"2024-10-14T18:41:16.585Z","dependency_job_id":null,"html_url":"https://github.com/x0rz/tweets_analyzer","commit_stats":{"total_commits":36,"total_committers":17,"mean_commits":"2.1176470588235294","dds":0.75,"last_synced_commit":"8d6bd3c2a93e400d81bc46115598f347487fba0c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0rz%2Ftweets_analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0rz%2Ftweets_analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0rz%2Ftweets_analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0rz%2Ftweets_analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x0rz","download_url":"https://codeload.github.com/x0rz/tweets_analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249206,"owners_count":22039029,"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":["analysis","privacy","python","twitter"],"created_at":"2024-07-31T19:01:29.906Z","updated_at":"2025-10-17T21:25:19.936Z","avatar_url":"https://github.com/x0rz.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)","Programming/Comp Sci/SE Things"],"sub_categories":["OSINT (Open Source Intelligence)"],"readme":"# Simple Twitter Profile Analyzer\n\nThe goal of this simple python script is to analyze a Twitter profile through its tweets by detecting:\n  - Average tweet activity, by hour and by day of the week\n  - Timezone and language set for the Twitter interface\n  - Sources used (mobile application, web browser, ...)\n  - Geolocations\n  - Most used hashtags, most retweeted users and most mentioned users\n  - Friends analysis based on most frequent timezones/languages\n\nThere are plenty of things that could be added to the script, feel free to contribute! 👍\n\n### Installation\n\n⚠ First, update your API keys in the *secrets.py* file. To get API keys go to https://apps.twitter.com/\n\nPython v2.7 or newer is required\n\nYou will need the following python packages installed: tweepy, ascii_graph, tqdm, numpy\n\nIf you have [pipenv](https://pipenv.kennethreitz.org/en/latest/) installed you can just run:\n\n```sh\n$ pipenv install\n```\n\nOtherwise you can use:\n\n```sh\n$ pip install -r requirements.txt\n```\n\n\n### Usage\n\n```\nusage: tweets_analyzer.py -n \u003cscreen_name\u003e [options]\n\nSimple Twitter Profile Analyzer\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -l N, --limit N       limit the number of tweets to retreive (default=1000)\n  -n screen_name, --name screen_name\n                        target screen_name\n  -f FILTER, --filter FILTER\n                        filter by source (ex. -f android will get android\n                        tweets only)\n  --no-timezone         removes the timezone auto-adjustment (default is UTC)\n  --utc-offset UTC_OFFSET\n                        manually apply a timezone offset (in seconds)\n  --friends             will perform quick friends analysis based on lang and\n                        timezone (rate limit = 15 requests)\n  -e path/to/file, --export path/to/file\n                        exports results to file\n  -j, --json            outputs json\n  -s, --save            saves tweets to tweets/{twitter_handle}/{yyyy-mm-\n                        dd_HH-MM-SS}.json\n  --no-color            disables colored output\n  --no-retweets         does not evaluate retweets\n```\n\n### Example output\n\n![Twitter account activity](https://cdn-images-1.medium.com/max/800/1*KuhfDr_2bOJ7CPOzVXnwLA.png)\n\nLicense\n----\nGNU GPLv3\n\n\nIf this tool has been useful for you, feel free to thank me by buying me a coffee\n\n[![Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoff.ee/x0rz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0rz%2Ftweets_analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx0rz%2Ftweets_analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0rz%2Ftweets_analyzer/lists"}