Instagram-Comments-Scraper
Instagram-Comments-Scraper copied to clipboard
Instagram comment scraper using python and selenium. Save the comments into excel.
Instagram Comments Scraper
Installation
-
Clone:
git clone [email protected]: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
-
-
Install Chrome Web Driver
-
wget https://chromedriver.storage.googleapis.com/x.xx/chromedriver_linux64.zip
See the latest Chrome web driver on https://sites.google.com/a/chromium.org/chromedriver/downloads
- Extract and move the binary to bin:
unzip chromedriver_linux64.zip -d .venv/bin/
- Make it executable
chmod +x .venv/bin/chromedriver
-
-
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