Skip to content

hughstephens/python-instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-instagram

A Python client for the Instagram REST and Search APIs

Installation

pip install python-instagram

Requires

  • httplib2
  • simplejson

Discussion

Visit our Google Group to discuss the Instagram API.

Obtaining an access token

You can use the provided get_access_token.py script to obtain an access token for yourself. It will prompt you for your app's Client ID, Client Secret, and Redirect URI, and walk you through instructions for getting your own access token for your app.

Usage

from instagram.client import InstagramAPI

access_token = "..."
api = InstagramAPI(access_token=access_token)
popular_media = api.media_popular(count=20)
for media in popular_media:
    print media.images['standard_resolution'].url

Sample app

We also provide a one-file sample app using bottle (you'll have to 'pip install bottle' first). To try it out:

About

Python Client for Instagram API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published