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 usernamepassword.send_keys('PASSWORD')
change with 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
This project is under the MIT License