This project is an Instagram Followers Scraper built using Selenium
and Python. It automates the process of logging into Instagram, visiting user profiles, and taking screenshots of their followers list. The script supports scraping multiple users and saves screenshots of followers and following lists into corresponding folders for each target user.
credentials.txt
file.The following Python packages:
selenium
webdriver-manager
Clone the repository:
git clone https://github.com/darth-divyansh/Instagram_Followers-SS.git
cd Instagram_Followers-SS
NOTE: It’s highly recommended to use a virtual environment for managing dependencies.
python -m venv {your_virtual_environment_name}
Activate the virtual environment On Windows:
{your_virtual_environment_name}\Scripts\activate
On macOS/Linux:
source {your_virtual_environment_name}/bin/activate
After activation, you will see the environment name appear in your terminal, indicating that the environment is active.
Install dependencies:
Install the required dependencies using pip
:
pip install -r requirements.txt
The requirements.txt
should include:
python-decouple
selenium==4.0.0
webdriver_manager
streamlit
Setup ChromeDriver:
The script automatically installs the latest version of ChromeDriver
using webdriver-manager
. Ensure that you have Google Chrome installed.
Run the script:
streamlit run app.py
Enter Instagram Credentials:
Specify Screenshot Count:
Enter Instagram Usernames:
login(bot, username, password)
: Logs into Instagram using the provided credentials.scrape_followers(bot, username, user_input)
: Scrapes followers of the given Instagram user and takes screenshots.scrape()
: Main function that loads credentials, logs into Instagram, and scrapes followers for all specified usernames.options.add_argument("--headless")
line in the scrape()
function to enable it.During investigations, a tool that automatically captures and documents social media data—posts, messages, followers, and account info—could help generate detailed, error-free reports. This would streamline the process and allow examiners to print relevant screenshots as needed.
This project is licensed under the MIT License. See the LICENSE file for more details.
This script is for educational purposes only. Use it responsibly and avoid violating Instagram's terms of service. The developer is not responsible for any misuse.