python-instagram

Instagram API client
Download

python-instagram Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Instagram, Inc
  • Publisher web site:
  • http://github.com/Instagram/

python-instagram Tags


python-instagram Description

python-instagram is a Python client for the Instagram REST and Search APIs.Installationpython setup.py installFollow @instagramapi on TwitterYou can follow @instagramapi on Twitter for announcements, updates, and news about the Instagram gem.Obtaining an access tokenYou 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.Usagefrom instagram.client import InstagramAPIaccess_token = "..."api = InstagramAPI(access_token=access_token)popular_media = api.media_popular(count=20)for media in popular_media: print media.images.urlSample appWe also provide a one-file sample app using bottle (you'll have to 'pip install bottle' first). To try it out:- Set your redirect URI to 'http://localhost:8515/oauth_callback' in your dev profile- Open up sample_app.py, update it with your client_id and secret, and set redirect URI to 'http://localhost:8515/oauth_callback'- Run the file; it will host a local server on port 8515.- Try visiting http://localhost:8515 in your browserProduct's homepage


python-instagram Related Software