On Instagram, you follow some people (following). Some people follow you (followers). But, there are some people you follow, and they are not following you back. This repository was created to automate the process of finding those people. Instead of trusting third-party apps and providing them with your instagram password, this repository can be used to automate the whole procedure, without having to share your passwords with any app!
This Python script does the following:
- Using Selenium, the script will login to your Instagram account, using your username and password.
- Then, it goes to a specific user (it goes to each one of the user's profiles provided in the
information.jsonfile) and it tracks the names of all the followers and following of this user. - It compares the 2 different lists, and prints the people you follow, and they are not following you back.
- It repeats the same for the rest of the users in the
information.jsonfile
- Find the people that you follow, but they are not following you back. This can, also, be used to find the corresponding people for some other account, as long as your account has access to view their followers and following.
- Find the people that you follow, but they are not following you back PLUS unfollow a number of those people.
- Python3, pip3
- Clone the current directory.
- Install the requirements:
pip3 install -r requirements.txt
- If you are using Firefox, you can download geckodriver. If you are using Chrome as your preferred browser, download ChromeDriver.
- Export as environmental variables your Instagram username and password:
export insta_username="your_username"
export insta_password="your_password"
- Fill in the necessary information required at the
information.jsonfile. Inside the json file, on thedriveroption, provide one of the following:- Firefox
- Chrome
- Now, you can execute the script. To find those people execute:
python3 main.py
To find those people and unfollow some of them afterwards (e.g. 100 people), execute the following:
python3 main.py unfollow 100
# or unfollow all of them by running
python3 main.py unfollow