Python 3 Web Scraping Tutorial to Scrape Instagram User Followers,Bio & Media on Command Line Using instagram-scraper Library Full Project For Beginners



Instagram Scraper

PyPI Build Status

instagram-scraper is a command-line application written in Python that scrapes and downloads an instagram user’s photos and videos. Use responsibly.


To install instagram-scraper:

To update instagram-scraper:

Alternatively, you can clone the project and run the following command to install: Make sure you cd into the instagram-scraper-master folder before performing the command below.


To scrape a user’s media:

NOTE: To scrape a private user’s media you must be an approved follower.

By default, downloaded media will be placed in <current working directory>/<username>.

Providing username and password is optional, if not supplied the scraper runs as a guest. Note: In this case all private user’s media will be unavailable. All user’s stories and high resolution profile pictures will also be unavailable.

To scrape a hashtag for media:

It may be useful to specify the --maximum <#> argument to limit the total number of items to scrape when scraping by hashtag.

To specify multiple users, pass a delimited list of users:

You can also supply a file containing a list of usernames:

The usernames may be separated by newlines, commas, semicolons, or whitespace.

You can also supply a file containing a list of location ids:

The resulting directory structure will be:

The locations can only be separated by newlines and spaces.


Leave a Reply