{"id":18965231,"url":"https://github.com/suleman-elahi/cancel_instagram_follow_requests","last_synced_at":"2025-04-16T05:32:20.381Z","repository":{"id":51318855,"uuid":"231587060","full_name":"Suleman-Elahi/Cancel_Instagram_Follow_Requests","owner":"Suleman-Elahi","description":"A simple script that automatically gets all the people you have sent a follow request and cancels them all with ease.","archived":true,"fork":false,"pushed_at":"2022-04-30T10:57:52.000Z","size":62,"stargazers_count":10,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-09T23:45:33.050Z","etag":null,"topics":["instagram","instagramapi","python","python3","scraping","selenium"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Suleman-Elahi.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}},"created_at":"2020-01-03T12:46:05.000Z","updated_at":"2024-12-13T04:44:41.000Z","dependencies_parsed_at":"2022-08-24T00:51:09.886Z","dependency_job_id":null,"html_url":"https://github.com/Suleman-Elahi/Cancel_Instagram_Follow_Requests","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/Suleman-Elahi%2FCancel_Instagram_Follow_Requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suleman-Elahi%2FCancel_Instagram_Follow_Requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suleman-Elahi%2FCancel_Instagram_Follow_Requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suleman-Elahi%2FCancel_Instagram_Follow_Requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suleman-Elahi","download_url":"https://codeload.github.com/Suleman-Elahi/Cancel_Instagram_Follow_Requests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249201117,"owners_count":21229004,"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":["instagram","instagramapi","python","python3","scraping","selenium"],"created_at":"2024-11-08T14:28:26.655Z","updated_at":"2025-04-16T05:32:20.112Z","avatar_url":"https://github.com/Suleman-Elahi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://trackgit.com\"\u003e\n\u003cimg src=\"https://us-central1-trackgit-analytics.cloudfunctions.net/token/ping/ketsbp2oe3jyotige4dk\" alt=\"trackgit-views\" /\u003e\n\u003c/a\u003e\n\n# Cancel Instagram Follow Requests\nA simple script that automatically gets all the people you have sent follow requests and cancels them all with ease.\n\nIf you have a long list of unresponded follow requests then you can cancel them. I don't know why but there isn't a simple way to do that. I wanted to do that for my business account so I created this on my own a few months ago. Here this tool works in two parts, in the first part, it logs in your IG account via username and password and gets all the handles whom you have sent a follow request. Next, then it gets all those names in a file and uses unofficial Intagram API to cancel those in bulk.\n\nThe endpoint to get current follow requests isn't availale in the official API or the graph API, so I had to go for the scraping. Here it runs on Python3 and uses Chrome driver to automate everything, you just have to specify the usernam and password and it will take care of the rest. I have tested it on Linux and Windows, should work on MAC too.\n\n#### Steps to use it on Windows and Linux:\n\n**Step 1**: Download Python 3.x from here: https://www.python.org/downloads/ and download Chrome driver from here: https://chromedriver.chromium.org/downloads\u003cbr\u003e\n**Step 2**: Put the `chromedriver.exe` file in the repository root and then double click on the `requirements.bat` file to install the dependencies. On Linux, you have to run the commands listed in the BAT file manually(may require `sudo`).\u003cbr\u003e\n**Step 3**: Edit the \"loginInfo.py\" file and specify your username and password inside doule quotes.\u003cbr\u003e\n**Step 4**: Finally start the script by openign command prompt in the root of the repo and type `python get_follow_req.py`. Next, sit back and relax and watch it in action.\u003cbr\u003e\n\n#### Known Issues:\n\n---\u003e Won't work on Instagram accounts having 2 Factor Authentication.\u003cbr\u003e\n---\u003e May not work properly on slow internet connection.\u003cbr\u003e\n\n#### Screenshot(OpenSuse Linux):\n\n\u003cp align=\"center\"\u003e \n\u003cimg src=\"https://github.com/Suleman-Elahi/Cancel_InstagramFollowRequests/blob/master/cancel%20req%20in%20action.png\"\u003e\n\u003c/p\u003e\n\n~Ps Not an expert in scraping :( so the code here may be laughable but it works. Any suggestions are welcome tho.\n\n\n**Note**: A faster and musch simpler tool I created to do the same thing: https://github.com/Suleman-Elahi/FollowRequestsRemover\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuleman-elahi%2Fcancel_instagram_follow_requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuleman-elahi%2Fcancel_instagram_follow_requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuleman-elahi%2Fcancel_instagram_follow_requests/lists"}