{"id":13826494,"url":"https://github.com/swaaz/InstaBot","last_synced_at":"2025-07-09T00:34:13.784Z","repository":{"id":37217996,"uuid":"258600635","full_name":"swaaz/InstaBot","owner":"swaaz","description":"Instagram bot built using Python and Selenium","archived":false,"fork":false,"pushed_at":"2022-12-08T04:32:02.000Z","size":37666,"stargazers_count":37,"open_issues_count":11,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T09:15:25.387Z","etag":null,"topics":["automation","bot","instagram","python","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/swaaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.buymeacoffee.com/swaazshetty"}},"created_at":"2020-04-24T19:07:54.000Z","updated_at":"2024-05-13T01:57:32.000Z","dependencies_parsed_at":"2023-01-24T16:00:48.462Z","dependency_job_id":null,"html_url":"https://github.com/swaaz/InstaBot","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaaz%2FInstaBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaaz%2FInstaBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaaz%2FInstaBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swaaz%2FInstaBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swaaz","download_url":"https://codeload.github.com/swaaz/InstaBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476383,"owners_count":17480215,"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":["automation","bot","instagram","python","selenium"],"created_at":"2024-08-04T09:01:39.001Z","updated_at":"2024-11-20T05:30:54.031Z","avatar_url":"https://github.com/swaaz.png","language":"Python","funding_links":["https://www.buymeacoffee.com/swaazshetty"],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e InstaBot\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003e Bot built for Instagram using Python and Selenium. \u003c/h2\u003e\n\u003ch3 align=\"center\"\u003e \nThis is an Instagram bot that can automate and perform some tasks; makes your task easier. The Bot can show the list of un-followers from you Instagram or it can show your fans and also it can cancel all the pending follow requests which you have already sent before or it can aslo unfollow those who don't follow you back.\n\u003c/h3\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./src/bot.gif\" width=\"300x\" height=\"400px\"\u003e\n\u003c/div\u003e\n\n## Video Demo\nClick on the below image to watch video\n\n[![Instabot](https://user-images.githubusercontent.com/42874695/134491592-fb0d54a9-2b94-46b1-959a-7958c613560e.png)](https://www.youtube.com/watch?v=tlb7oM2408M)\n\n### Clone project\nFirst you need to fork and then copy the url from clone option  \nRun in gitbash or terminal :\n```\n$ git clone [url]\n```\n### Install Python 3\nrun in terminal :\n```\n$ sudo apt-get update\n$ sudo apt-get install python3.7\n```\n### Install PIP\n#### For Windows user\n- Download the ```git-pip.py``` by clicking [here](https://bootstrap.pypa.io/get-pip.py)\n- Run in gitbash or cmd :\n```\n$ python get-pip.py\n```\n- Verify by running :\n```\n$ pip -V\n```\n#### For linux user\n- Run in terminal :\n```\n$ apt install python3-pip\nor\n$ python get-pip.py     \n```\n### Install Selenium\nRun in terminal or cmd / gitbash\n```\n$ pip install selenium\nor\n$ pip3 install selenium\n```\n### Add the Path to the code\nThe path of the webdriver has to changed according to your environment  \nReplace 18ₜₕ line of file  ``` ./program.py ``` with the code snippet given below\n#### linux user\n##### if you are using firefox\n```\nself.driver = webdriver.Firefox(executable_path = \"./webdrivers/firefox_webdriver/geckodriver-v0.26.0-linux64/geckodriver\")\n```\n##### if you are using chrome\n\n```\nself.driver = webdriver.Chrome(executable_path = \"./webdrivers/chrome_webdriver/chromedriver_linux64/chromedriver\")\n```\n#### Windows user\n##### if you are using firefox\n\n```\nself.driver = webdriver.Firefox(executable_path = \".\\\\webdrivers\\\\firefox_webdriver\\\\geckodriver-v0.26.0-win32\\\\geckodriver.exe\")\n```\n\n##### if you are using chrome\n\n```\nself.driver = webdriver.Chrome(executable_path = \".\\\\webdrivers\\\\chrome_webdrive\\\\chromedriver_win32\\\\geckodriver.exe\")\n```  \n### Adding Path to the Environment Variable (only for Windows users)\n\u003cstrong\u003e Read the Instruction carefully \u003c/strong\u003e\n\n#### Instructions to add path to your Environment variable\n- Copy the path of webdriver which is inside ```InstaBot``` folder and add the path to Environment Variable as instructed below\n##### if you are using firefox\nBegining of the path will depend on your system and the location you cloned the repo\n```\n.....\\InstaBot\\webdrivers\\firefox_webdriver\\geckodriver-v0.26.0-win32\\\n```\nexample : \n```\nC:\\Users\\sharan\\Downloads\\temp\\InstaBot\\webdrivers\\firefox_webdriver\\geckodriver-v0.26.0-win32\\\n```\n##### if you are using chrome\nBegining of the path will depend on your system and the location you cloned the repo\n```\n.....\\InstaBot\\webdrivers\\chrome_webdriver\\chromedriver_win32\\\n```\nexample : \n```\nC:\\Users\\sharan\\Downloads\\temp\\InstaBot\\webdrivers\\chrome_webdriver\\chromedriver_win32\\\n```\n- Then go to ```This PC``` -\u003e Right-click -\u003e Properties -\u003e Advanced system setting -\u003e Advanced -\u003e Environment Variables -\u003e User system -\u003e select ```path``` -\u003e Edit -\u003e New -\u003e Paste the copied path -\u003e OK  \n##### Above instrution in show below\n\u003cdiv align=\"center\"\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/1.png\" width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/2.png\"width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/3.png\"width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/4.png\"width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/5.png\"width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n    \u003cdiv\u003e\u003cimg src=\"./src/6.png\"width=\"70%\"\u003e\u003cdiv\u003e\u003cbr\u003e\n\u003c/div\u003e  \n\u003cstrong\u003eHow to add Firefox webdriver path to environment variable\u003c/strong\u003e\n\n[![Add firefox webdriver path](https://res.cloudinary.com/marcomontalbano/image/upload/v1589211316/video_to_markdown/images/youtube--wtiq5FX9lxE-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://youtu.be/wtiq5FX9lxE \"Add firefox webdriver path\")\n\n\u003cstrong\u003eHow to add chrome webdriver path to environment variable\u003c/strong\u003e\n\n[![Add chrome webdriver path](https://res.cloudinary.com/marcomontalbano/image/upload/v1589211581/video_to_markdown/images/youtube--mxVfa6q-03M-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://youtu.be/mxVfa6q-03M \"Add chrome webdriver path\")\n\n\u003cdiv align=\"left\"\u003e\n\n\n\n#### file structure:\n```\n.\n├── webdriver\n│   │\n│   ├── chrome_webdriver\n│   │   ├── chrome_webdriver_linux64\n│   │   │   ├── chromedriver\n│   │   │   \n│   │   ├── chrome_webdriver_mac64\n│   │   │   ├── chromedriver\n│   │   │  \n│   │   ├── chrome_webdriver_win32\n│   │   │   ├── chromedriver.exe\n│   │\n│   │\n│   ├── firefox_webdriver\n│   │   ├── geckodriver-v0.26.0-linux64\n│   │   │   ├── geckodriver\n│   │   │   \n│   │   ├── geckodriver-v0.26.0-macos\n│   │   │   ├── geckodriver\n│   │   │   \n│   │   ├── geckodriver-v0.26.0-win32\n│   │   │   ├── geckodriver.exe\n│   │   │\n│   │\n│   \n```\n\n### Install all the packages\n```\n$ pip install -r requirements.txt\nor\n$ pip install -r requirements.txt\n```\n### Add username and password\nEdit the ```./secrets.py``` file and add your username and password\n```\nusr = \"[username]\" \npwd = \"[password]\"\n```\n\n### Run the program\nRun in terminal or cmd / gitbash\n```\n$ python program.py\nor\n$ python3 program.py\n```\n### Helpful links\n- [Install Python 3](https://realpython.com/installing-python/)\n- [Installing PIP on Windows](https://www.liquidweb.com/kb/install-pip-windows/)\n- [Installing PIP on Linux](https://www.tecmint.com/install-pip-in-linux/)\n- [Download Geckodriver](https://github.com/mozilla/geckodriver/releases)\n- [Download Chrome Driver](https://chromedriver.chromium.org/downloads)\n- [Setup selenium and webdriver for Linux](https://www.youtube.com/watch?v=CriSHYMtg9M)\n- [Setup selenium and webdriver for Windows](https://youtu.be/FFDDN1C1MEQ)\n\n### Watch prototype\n[![Add firefox webdriver path](https://www.swaaz.me/assets/img/project/Instabot-1200695.jpg)](https://www.youtube.com/watch?v=tlb7oM2408M\"InstaBot\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswaaz%2FInstaBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswaaz%2FInstaBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswaaz%2FInstaBot/lists"}