Skip to content

asmitks/insta-graphql-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Graphql Scraper

PyPI

instagram-graphql-scraper is a command-line application written in Python that scrapes posts and complete metadata(caption, image-link, description, time-stamp, location), from instagram's explore location page. The novelty lies in the option to provide min and max date, hence giving an option to scrape old posts as well.

Installation

To install insta-graphql--scraper:

$ pip install insta-graphql-scraper

To update insta-graphql-scraper:

$ pip install insta-graphql-scraper --upgrade

Usage

$ scrape [-h] [--dir DIR] --max MAX_DATE --min MIN_DATE --location LOCATION
                  [--restore-cursor] [--log-level LOG_LEVEL]

Example

  1. Standard: python scraper.py --max "2020/07/15" --min "2020/06/15" --location "New-York-City"
  2. Custom directory: python scraper.py --dir "./data" --max "2020/07/15" --min "2020/06/15" --location "New-York-City " --restore-cursor
  3. Log debug messages: python scraper.py --max "2020/07/15" --min "2020/06/15" --location "New-York-City" -- log-level 10
  4. Restore from last saved post: python scraper.py --max "2020/07/15" --min "2020/06/15" --location "New-York-City" --restore-cursor

About

scrapes posts using location and start and end time

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages