{"id":18939920,"url":"https://github.com/abdullah2993/twitter-tools","last_synced_at":"2026-03-23T04:30:17.243Z","repository":{"id":83983946,"uuid":"603488912","full_name":"abdullah2993/twitter-tools","owner":"abdullah2993","description":"Small utilities for twitter","archived":false,"fork":false,"pushed_at":"2023-10-11T23:20:13.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T22:26:01.371Z","etag":null,"topics":["twitter","twitter-api","twitter-sentiment-analysis","twitter-streaming-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/abdullah2993.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":"2023-02-18T17:06:36.000Z","updated_at":"2023-07-13T17:27:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"1139a524-6ae9-4b77-8b0c-2448a0c29bcc","html_url":"https://github.com/abdullah2993/twitter-tools","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/abdullah2993%2Ftwitter-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah2993%2Ftwitter-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah2993%2Ftwitter-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah2993%2Ftwitter-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullah2993","download_url":"https://codeload.github.com/abdullah2993/twitter-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239938671,"owners_count":19721693,"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":["twitter","twitter-api","twitter-sentiment-analysis","twitter-streaming-api"],"created_at":"2024-11-08T12:19:25.407Z","updated_at":"2026-03-23T04:30:17.201Z","avatar_url":"https://github.com/abdullah2993.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitter-tools\r\n\r\nSmall utilities for twitter\r\n\r\n### search\r\n\r\nSearch for tweets with the given keyword/hashtag use to get all data related to a keyword/hashtag\r\n\r\n```\r\nUSAGE: search \u003cSEARCH_TERM\u003e \u003cOUTPUT_FILE\u003e\r\nFlags:\r\n  -pretty\r\n        Format JSON (default true)\r\n```\r\n\r\nwill create a new output file if it doesn't exist otherwise will append\r\n\r\n### track\r\n\r\nTrack tweets with the given keyword/hashtag in realtime usually used with search so you don't miss new tweets while the search is getting older tweets\r\n\r\n```\r\nUSAGE: track \u003cSEARCH_TERM\u003e \u003cOUTPUT_FILE\u003e\r\nFlags:\r\n  -pretty\r\n        Format JSON (default true)\r\n```\r\n\r\nwill create a new output file if it doesn't exist otherwise will append\r\n\r\n### merge\r\n\r\nDeduplicate and merge multiple tweet files into one file, used to merge output of search and track utilities for analysis.\r\n\r\n```\r\nUSAGE: analyze \u003cOUTPUT_FILE\u003e \u003cTWEETS_FILE_1\u003e \u003cTWEETS_FILE_2\u003e \u003cTWEETS_FILE_...\u003e\r\nFlags:\r\n  -fail\r\n        Fail on error (default true)\r\n  -pretty\r\n        Format JSON (default true)\r\n```\r\n\r\nwill create a new output file if it doesn't exist otherwise will append\r\n\r\n### analyze\r\n\r\nDo some preliminary analysis on a given tweets file\r\n\r\n```\r\nUSAGE: analyze \u003cTWEETS_FILE\u003e \u003cREPORT_FILE\u003e\r\nFlags:\r\n  -top int\r\n        Number of results to print(less than 1 to print all) (default 30)\r\n```\r\n\r\nwill create a new report file if it doesn't exist otherwise it will override any existing file\r\n\r\n### Usage\r\n\r\nTo analyze a given hashtag run `search` for the hashtag to get all the older tweets, in parallel run `track` to get the new tweets once done, merge the output files using `merge` and run `analyze` on the output file\r\n\r\nsearch and track use twitter api keys so make sure to [set the environment variables](./.env.sample) or provide a `.env` in the same folder as the executable\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah2993%2Ftwitter-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullah2993%2Ftwitter-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah2993%2Ftwitter-tools/lists"}