Skip to content

Instantly share code, notes, and snippets.

@shyd
Created January 15, 2018 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shyd/ae354ec7a843a59906e93671569fef58 to your computer and use it in GitHub Desktop.
Save shyd/ae354ec7a843a59906e93671569fef58 to your computer and use it in GitHub Desktop.
How to get Instagram media and info

Instagram Scraper

Get users media

https://www.instagram.com/username/?__a=1

if user.media.page_info.has_next_page is true, continue with

https://www.instagram.com/username/?__a=1&max_id=<user.media.page_info.end_cursor>

Get your own saved media

https://www.instagram.com/username/saved/?__a=1

if user.saved_media.page_info.has_next_page is true, continue with

https://www.instagram.com/username/saved/?__a=1&max_id=<user.saved_media.page_info.end_cursor>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment