This program is a crawler that can be used to download all images from a given set of Instagram accounts.
- Clone the repository & Install the required dependencies
git clone https://github.com/yung1231/Instagram-Crawler.git
pip install -r requirements.txt
- chromedriver
- Download the Chrome Driver from official website. Make sure to download the version that matches your Chrome browser version.
- Fill in the information in
config.cfg
, including the usernames of the Instagram accounts you want to download images from.- Note: You can enter multiple usernames in the
usernames
field by separating them with commas.
[conf] save_pth = .\download_1 usernames = username_1,username_2,username_3,username_4,username_5...
- Note: You can enter multiple usernames in the
- Run
main.py
. - Enter your
username
andpassword
to login. - Alternatively, you can use
cookies
for login. If it's your first time using the program, you will need to login with your username and password. Afterwards, you can use cookies to login directly.- Note: If you encounter any issues with your cookies, please delete the
cookies.json
file and re-capture the cookies.
- Note: If you encounter any issues with your cookies, please delete the