This tool allows you to scrape data from your Instagram profile, including your followers' usernames and their post count, followers, and following. It uses the selenium
package to automate interactions with the Instagram website.
-
Download the appropriate version of the Chrome WebDriver for your operating system and browser version.
-
Add chromedriver path in
PATH
variable. -
Clone the repository to your local machine:
git clone https://github.com/vats147/instagram-webscrap.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Replace your instagram
Username
andpassword
inscarp.py
file. -
Run the
scrap.py
script:python scrap.py
This will launch a Chrome browser window and navigate to the Instagram login page.
-
Once you are logged in, the script will scrape your followers' usernames and profile links, their post, their followers,their following and save them to a
result.csv
file in the same directory. -
Alternatively, if you only need your followers list and not the entire tool, you can get it by opening Instagram in your browser, navigating to your profile page, clicking on the "Followers" button, opening the browser console (usually with the F12 key), and pasting the
script.js
code from the repository into the console. This will print the list of your followers' usernames to the console.
This project is licensed under the MIT License - see the LICENSE file for details.
- The
selenium
package for Python: https://selenium-python.readthedocs.io/ - The Chrome WebDriver: https://chromedriver.chromium.org/