Instagram comment scraper using python and selenium. Save the comments into excel.
Last updated Jun 29, 2026
174
Stars
44
Forks
13
Issues
0
Stars/day
Attention Score
52
Language breakdown
No language data available.
▸ Files
click to expand
README
I don't actively maintain this repository.> >
Why this scraper doesn't work on my side?>
As I observed on the current Instagram website the website could respond with different elements or pages so this scraper might not work for some people.
Instagram Comments Scraper
Installation
- Clone:
git clone git@github.com:AgiMaulana/Instagram-Comments-Scraper.git
or git clone https://github.com/AgiMaulana/Instagram-Comments-Scraper.git or download the zip
- Create Virtual Environment (Recommended)
pip install virtualenv - virtualenv .venv - Activate the virtual environment
source .venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Login
username.send_keys ('USER-NAME') change with your username
- password.send_keys('PASSWORD') change with your password
- We don't store your password
- Run
python scraper.py post-url total-load-more-click
Change the URL with your post target. For example:
python scraper.py https://www.instagram.com/p/CBHH2KjI6BW/ 5
- Deactivate the virtual environment
deactivate
License
This project is under the MIT License🔗 More in this category