Find & copy to clipboard all Instagram Followers - Following - Non-Followers - Non-Following - New Followers - Unfollowers
βοΈ & π±
- Purpose
- Method
- Installation
- Execution
- Licence
- Help
- Contribution
- The bot collects the followers & following list from an Instagram profile.
- The collected usernames can be copied to clipboard upon request.
- The bot can also discover the non-followers & non-following by taking the difference between the followers & following lists.
- Finally, it can discover the new followers & unfollowers by taking the difference between the current followers & the followers previously saved in a specified file.
- The bot code implements the MVC design pattern & automated browsing via the Selenium WebDriver that sends & displays actions onto the Chrome web browser with appropriate delays.
- Download the installer.
- Run & follow the steps of the installer.
- This is the used programming language.
- Download the compressed
chromedriver
installer corresponding to your Chrome version & OS version. - The used Chrome version is on the 1st output line when requesting
chrome://version
in Chrome's search bar. - The filename to download is
chromedriver_win32.zip
for Windows &chromedriver_mac64.zip
for Mac. - Unzip the compressed installer.
- Run & follow the steps of the installer.
- This is the automatic driver for Chrome.
- Install with
pip install selenium
from the terminal. - These are the Python bindings to the
Selenium Webdriver
.
- Install with
pip install pyperclip
from the terminal. - This is the connection to the clipboard of the OS.
- Download the installer.
- Run & follow the steps of the installer.
- This is the web browser Chrome.
- Download the Python source.
- Set the value of
self._driver_path
on line 82 to the path of the chromedriver executable on your operating system (OS), e.g.self._driver_path = 'D:/utils/net/chromedriver.exe'
orself._driver_path = '/users/username/utils/net/chromedriver'
. - This is the source code of the bot.
- Run
InstaFollowBotw
withpython InstaFollowBot.py
from the terminal. - Just
InstaFollowBot.py
or double clicking may also work.
- Happens as soon as the program runs.
- The bot loads Chrome.
- It asks the user for their Instagram username and password. * The password characters typed remain invisible for a safer entry.
- It visits the Instagram website.
- It waits 1 sec for the browser to load.
- It logins automatically to the profile using the provided details.
- It waits 3 sec.
- It opens the profile page.
- It waits 1 sec.
- Scrolls over the followers on the logged in Instagram profile.
- Copies the profile names & total number of followers alongside the current time to the program memory.
- To be rerun if fewer followers than displayed are returned due to delay in downloading.
- Process description to collect followers
- Visit user profile
- Wait 1 sec
- Click on followers button
- Wait 1 sec
- Click on scroll bar repeatedly every 0.5 secs
- Collect all followers' usernames.
- Scrolls over the following on the logged in Instagram profile.
- Copies the profile names & total number of following alongside the current time to the program memory.
- To be rerun if fewer following than displayed are returned due to delay in downloading.
- Copies the downloaded profile names & total number of followers from the program memory alongside the current time to the OS clipboard.
- The profile names appear in reverse chronological order of following.
- The data can be easily copied to a file with Ctrl-V on Windows or Cmd-V on Mac.
- Runs 1. if it was not previously done.
- Copies the downloaded profile names & total number of following from the program memory alongside the current time to the OS clipboard.
- The profile names appear in reverse chronological order of following.
- Runs 2. if it was not previously done.
- Discovers the profile names & total number of non-followers by subtracting the followers from the following.
- Copies the discovered profile names & total number of non-followers alongside the current time to the OS clipboard.
- The profile names appear in alphabetical order.
- Runs 1. & 2. if it was not previously done.
- Discovers the profile names & total number of non-following by subtracting the following from the followers.
- Copies the discovered profile names & total number of non-following alongside the current time to the OS clipboard.
- The profile names appear in alphabetical order.
- Runs 1. & 2. if it was not previously done.
- Discovers the profile names & total number of new followers by subtracting the followers previously saved in a file from the current followers.
- Copies the discovered profile names & total number of new followers alongside the previously saved & the current time to the OS clipboard.
- The profile names appear in alphabetical order.
- Runs 1. if it was not previously done.
- Asks the user for the filename containing previously saved followers if it was not previously done.
- Reads followers from the specified file if it was not previously done.
- Discovers the profile names & total number of unfollowers by subtracting the current followers from the followers previously saved in a file.
- Copies the discovered profile names & total number of unfollowers alongside the previously saved & the current time to the OS clipboard.
- The profile names appear in alphabetical order.
- Runs 1. if it was not previously done.
- Asks the user for the filename containing previously saved followers if it was not previously done.
- Reads followers from the specified file if it was not previously done.
- Exits the program.
Only the 1st 2 Instagram profile names are displayed for brevity.
202 @aoctut Followers 18/05/2020-09:56
stone_sense
gemma_cormack
...
198 @aoctut Following 18/05/2020-09:56
jadahsellner
emilyryanlikes
...
23 @aoctut Non-Followers 18/05/2020-09:57
alexbeadon
azurewill
...
27 @aoctut Non-Following 18/05/2020-09:57
2youngtolose
_mastermarketers_
...
7 @aoctut New Followers 12/05/2020-11:52 - 18/05/2020-09:57
2youngtolose
beautypreneur.ie
...
6 @aoctut Unfollowers 12/05/2020-11:52 - 18/05/2020-09:57
brain_whisperer
drsukhi_mysticface
...
InstaFollowBot is released with the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) licence.
To ask for help with running the bot, you can contact us on Instagram.
- To offer us suggestions or financial support to improve the bot, you can contact us on Instagram.
- To contribute to this project, you can fork this repository, make improvements, and submit them via a pull request.