This is a scraper that automatically scraps posts data (image, text, comments, likes) of a given hashtag with Selenium and store them in a MongoDB database.
- Download and install MongoDB
- Either clone this repo or download all these files by going to Code -> Download ZIP.
- Open the terminal inside project folder and install the required packages
pip install -r requirements.txt
- Launch your MongoDB server
- Launch chromedriver.exe
- Run InstagramScraper.py with the desired parameters
InstagramScraper [database name][hashtag][number of posts]
- A chrome window will automatically open, sit back and enjoy watching the posts being scrapped