{"id":20676534,"url":"https://github.com/ryosukedtomita/twitter-api","last_synced_at":"2025-09-27T03:31:41.447Z","repository":{"id":160184489,"uuid":"400216679","full_name":"RyosukeDTomita/twitter-api","owner":"RyosukeDTomita","description":"仕様変更後に対応してません。","archived":false,"fork":false,"pushed_at":"2024-03-14T13:24:21.000Z","size":747,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-16T21:12:49.572Z","etag":null,"topics":["scraping-python","twitter-api"],"latest_commit_sha":null,"homepage":"","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/RyosukeDTomita.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}},"created_at":"2021-08-26T15:24:52.000Z","updated_at":"2023-06-06T12:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"160b82d8-d3ac-46d0-99a6-9f25577b6644","html_url":"https://github.com/RyosukeDTomita/twitter-api","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/RyosukeDTomita%2Ftwitter-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Ftwitter-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Ftwitter-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Ftwitter-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyosukeDTomita","download_url":"https://codeload.github.com/RyosukeDTomita/twitter-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234377986,"owners_count":18822628,"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":["scraping-python","twitter-api"],"created_at":"2024-11-16T21:12:57.641Z","updated_at":"2025-09-27T03:31:36.071Z","avatar_url":"https://github.com/RyosukeDTomita.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# INDEX\nUsing twitter api, get twitter data. \n\n- [ABOUT](#ABOUT)\n- [ENVIRONMENT](#ABOUT)\n- [PREPARING](#PREPARING)\n- [HOW TO USE](#HOW TO USE)\n- [REFERENCE(#REFERENCE)]\n\n# ABOUT\nThese programs need twitter api BEARER_TOKEN.\nIf you don't have api token, please register from [here](https://developer.twitter.com/en/apps/)\n\n# ENVIRONMENT\nI used the following environment.\n- Python3.8\n- Ubuntu 20.04 LTS or MacOS Catalina\n\nI think these program can run in windows.But, I didn't test it.\n\n# PREPARING\n1. Plase get your token from [your twitter developer page](https://developer.twitter.com/en/apps/)\n2. Export your token to environment variables. Add these commands in bashrc.(You need to replace \u003cTOKEN\u003e for your token.)\n\n```\nexport CONSUMER_KEY=\u003cYOUR_CONSUMER\u003e\nexport CONSUMER_SECRET=\u003cYOUR_CONSUMER_SECRET\u003e\nexport BEARER_TOKEN=\u003cYOUR_BEARER_TOKEN\u003e\n```\n\n# HOW TO USE\n## fetching selected user's followers data and save to text file.\n\n```shell\npython3 fetch_followerList.py -i \u003cuser_id\u003e\n```\n\n## fetching selected user's tweet to save to text file.\n\n```shell\npython3 fetch_timeline.py -i \u003cuser_id\u003e\n```\n\n## monitoring selected user's tweet.\nScanning selected user's tweet per 1 minutes.\nIf found new tweet then save to text file.\n\n```shell\npython3 monitor_timeline_per1min.py -i \u003cuser_id\u003e\n```\n\n## compare followerslist.csv and find common user.\n\n```shell\npython3 find_commonuser.py -f \u003ccsv1\u003e -f \u003ccsv2\u003e\n```\n\n## fetch followerlist.csv's icon image.\n\n```shell\npython3 fetch_follower_icon.py -f \u003ccsv\u003e\n```\n******\n\n\n# REFERENCE\n- If you get rate-limit error(429),see [rate-limit](https://developer.twitter.com/en/docs/twitter-api/v1/rate-limits).\n- [Developer terms](https://developer.twitter.com/en/developer-terms/more-on-restricted-use-cases)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Ftwitter-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryosukedtomita%2Ftwitter-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Ftwitter-api/lists"}