This repo is to download the videos or images a list of targeted instagram username.
Please edit the parametercrawler_param.json
before running it
- store_dir: the target directory that you want to store the
videos
andpictures
. The script will create a directory with the username and subdirectories, video and picture, inside it. - target_username: the list of target instagram username.
- crawl_sleep_time: the sleep time of every request, which is to prevent being block by the host
- Docker compose
Just simply run the following command based ondocker-compose.yml
to run the crawler with docker compose:
docker compose up
- python
Installing all the necessary package is needed before running the crawler
pip install -r requirements.txt
Then you may run the crawl with:
python main.py