Home > pInstagram

pInstagram

PInstagram is a project mainly written in ..., based on the MIT license.

Python Client for Instagram API

Instagram (unofficial/private) API Client

Disclaimer

Please note that Instagram strongly advices people not to use this API endpoint for building 3rd party applications. Thusly this library won't be well maintained so use it at your own discretion.

Implemented with help from mislav's wiki notes.

Depends on restclient

Basic Usage

from pInstagram import Instagram

inst = Instagram()

success, content = inst.login('username', 'password')
if success:
    mycookie = inst.cookie #store down cookie string
    print inst.feed_timeline()

If you have a cookie stored

from pInstagram import Instagram

inst = Instagram(mycookie)

if not inst.is_cookie_expired():
    print inst.feed_timeline()
Previous:Blog-Examples