This Python project uses the Selenium and BeautifulSoup libraries to automatically log into Instagram, scrape your followers and following lists, and identify the users who do not follow you back. It features a custom, color-coded terminal interface and saves your scraped data locally.
- Secure Terminal Login: Securely prompts for your Instagram username and password directly in the console with a clean UI.
- 2FA Detection: Automatically detects if Two-Factor Authentication (Authenticator app/SMS) is required, pauses the script, and waits for your manual intervention.
- Automated List Scraping: Opens the followers and following dialogs, automatically scrolls to the bottom using JavaScript, and parses the HTML to extract usernames.
- Non-Follower Analysis: Compares your lists to accurately pinpoint users you follow who don't follow you back.
- Data Export: Automatically exports and saves your followers, following, and non-followers to a local
instagramlist.txtfile. - Sleek Terminal UI: Provides real-time, color-coded updates and ASCII borders right in your command line.
To run this project, you must have Python 3.x and the Google Chrome browser installed on your computer.
- Clone this repository or download the project files.
- Open a terminal in the project directory.
- Install the required libraries by running the following command:
pip install -r requirements.txt- Open your terminal and navigate to the folder containing the project.
- Run the script:
python main.py- When the prompt appears in the terminal, enter your Instagram Username and Password.
- Important: If you have Two-Factor Authentication enabled, solve the challenge in the opened Chrome window, then return to the terminal and press any key to continue.
- Sit back and wait for the bot to finish scrolling. Your non-followers will be printed in the terminal and saved to the text file!
⚠️ Disclaimer: This script is for educational purposes. Instagram frequently updates its web structure and actively monitors bot activity. Aggressive scraping may trigger temporary action blocks or require account verification. Please use responsibly.