Skip to content

Instagram scraper with proper pagination, that can collect posts, likes, comments and a lot more.

License

Notifications You must be signed in to change notification settings

ashvardanian/PyScrapeIg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyScrapeIg

Python wrapper for Instagram.com API. This fork has better support for long paginating requests.

Install

This version:

$ pip install git+https://github.com/ashvardanian/PyScrapeIg.git

Original version:

$ pip install igramscraper

Usage

>>> from ig import Instagram
>>> instagram = Instagram()
>>> me = instagram.get_account('ashvardanian')
>>> print(me)

If you want to get a lot of granular data use the low-level methods like yield_pagintated_data_w_errors and manually filter it yourself.

>>> for media in instagram.yield_pagintated_data_w_errors(instagram.get_user_medias_page, user_id=me.identifier):
>>>     print(media)

More info

See examples here.

About

Instagram scraper with proper pagination, that can collect posts, likes, comments and a lot more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%