{"id":22209293,"url":"https://github.com/tolumide-ng/tbot","last_synced_at":"2025-03-25T04:50:22.986Z","repository":{"id":116505496,"uuid":"458765410","full_name":"tolumide-ng/tbot","owner":"tolumide-ng","description":"Basic test project to eventually delete all my tweets, likes, and rts (still a work in progress)","archived":false,"fork":false,"pushed_at":"2022-09-06T11:23:28.000Z","size":392,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T05:12:25.629Z","etag":null,"topics":["bot","cargo","cargo-workspaces","rust","twitter"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolumide-ng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-02-13T09:37:02.000Z","updated_at":"2022-09-06T11:28:06.000Z","dependencies_parsed_at":"2023-04-25T16:47:04.617Z","dependency_job_id":null,"html_url":"https://github.com/tolumide-ng/tbot","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/tolumide-ng%2Ftbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolumide-ng%2Ftbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolumide-ng%2Ftbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolumide-ng%2Ftbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolumide-ng","download_url":"https://codeload.github.com/tolumide-ng/tbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245401388,"owners_count":20609166,"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":["bot","cargo","cargo-workspaces","rust","twitter"],"created_at":"2024-12-02T19:29:37.683Z","updated_at":"2025-03-25T04:50:22.959Z","avatar_url":"https://github.com/tolumide-ng.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\ncargo run -p twitar\n```\n\n| # | Endpoints | Limit (app)  | Limit (user)   | Plan |\n|---|-----------|--------|------|-------|\n| 1 | Delete Retweet | (a). 50 requests per 15 min (per user) \u003cbr /\u003e (b). 300 requests per 3-hour window(per user, per app) \u003cbr /\u003e (c). 1000 successful requests/24hrs | | * |\n| 2 | Delete Like | (a). 1000 successful requests/24hrs/window per user (this limit is shared by both like a tweet and delete like endpoints) | | |\n| 3 | User Tweet Timeline | (a). 1500 requests per 15 minutes (per app) | (a). 900 requests/15 minutes/app | | * |\n| 4 | Tweet counts | 300 requests/15m/app | | |\n| 5 | Retweets lookup | 75r/15m/app | 75r/15m/app | | |\n| 6 | Undo a retweet | 50r/15m/app | | | |\n\n### TWEET DELETE PLAN\nuse best_sum for best approach towards deletion\n\u003e Scenario: Assuming 2 users are selected \n\u003cbr /\u003e - The Goal is to delete 960 reqs/day | limit - 1000reqs/day\n\u003e \u003cbr /\u003e - 240 reqs/3hrs | limit - 300reqs/3hrs\n\u003e \u003cbr /\u003e - 80 reqs/15mins i.e 40reqs/user | limit - 50reqs/15mins\n\u003e \u003cbr /\u003e - i.e. (960/4)/3\n\n\u003cbr /\u003e\n\n\u003e Scenario: Assuming 1 user is selected\n\u003cbr /\u003e - 40r/15mins | 50/15mins\n\u003cbr /\u003e - Run 7 times in 3hrs - (40*7 = 280r/3hrs) | 300/3hrs\n\u003cbr /\u003e - Run 3 times a day to delete (900 reqs/day) | 1000/day\n\n```\ndef basic_del(num_of_users):\n    times_to_run = []\n    if num_of_users = 2:\n        times_to_run = [0min, 15mins, 30mins]\n    else:\n        times_to_run = [0min, 15mins, 30mins, 45mins, 60mins, 75mins, 90mins]\n    \n    for time in times_to_run:\n        run_at(time) --\u003e 40 * num_of_users\n```\n\u003e App has a maximum of 300 deletes/3hrs and 1000 deletes/24hrs\n\u003c!-- \u003e\u003e 4 hours later --\u003e\n\n```\nt1 - 1:00hrs\nbasic_del() - 240reqs | total 240\nt2 - 4:00hrs (rather than 3hrs, add 1 extra hr from the expected limit)\nbasic_del() - 240reqs | total 480\nt3 - 8:00hrs\nbasic_del() - 240reqs | total 720\nt4 - 12:00hrs\nbasic_del() - 70reqs | total 960\n```\n\n\n```\n basic_del()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolumide-ng%2Ftbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolumide-ng%2Ftbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolumide-ng%2Ftbot/lists"}