Insta-tracker is a Python project that connects to an Instagram account and retrieves the followers and following of a specified Instagram user. It also displays users you don't follow back and users who don't follow you back.
- Log in to an Instagram account
- Retrieve followers and following of a target user
- Display users you don't follow back
- Display users who don't follow you back
- Python 3.6 or higher
- An Instagram account
git clone https://github.com/AlirezaRa94/insta-tracker.git
cd insta-tracker
It is recommended to use a virtual environment to manage dependencies. You can create a virtual environment using the following command:
python -m venv env
On Windows:
.\env\Scripts\activate
On macOS/Linux:
source env/bin/activate
Install the dependencies listed in the requirements.txt file:
pip install -r requirements.txt
To run the script and retrieve the followers and following of a target Instagram user, follow these steps:
Open the main.py file and replace the following placeholders with your Instagram credentials and the target username:
YOUR_USERNAME = 'YOUR_USERNAME'
YOUR_PASSWORD = 'YOUR_PASSWORD'
TARGET_USERNAME = 'YOUR_TARGET_USERNAME'
Run the script:
python main.py
Here is an example of what the output might look like:
Followers of YOUR_TARGET_USERNAME you don't follow back:
follower1
follower2
follower3
...
Following of YOUR_TARGET_USERNAME they don't follow you back:
followee1
followee2
followee3
...
- Ensure that your Instagram account credentials are kept secure and not hardcoded in public repositories.
- Be aware of Instagram's rate limits to avoid temporary bans.
- If your Instagram account has two-factor authentication enabled, you will need to handle this within the script. Refer to the instaloader documentation for more details on managing two-factor authentication.