Skip to main content

Django implementation for instagram API

Project description

# Django Instagram API

[![Build Status](https://travis-ci.org/ramusus/django-instagram-api.png?branch=master)](https://travis-ci.org/ramusus/django-instagram-api) [![Coverage Status](https://coveralls.io/repos/ramusus/django-instagram-api/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-instagram-api)

Application for interacting with Instagram API objects using Django model interface

## Installation

pip install django-instagram-api

Add into `settings.py` lines:

INSTALLED_APPS = (
...
'm2m_history',
'instagram_api',
)

INSTAGRAM_API_CLIENT_IDS = ['...']

## Usage examples

### Simple API request

>>>from instagram_api.models import User, Media
>>>u = User.remote.fetch(237074561)
>>>print u
tnt_online

>>>followers = u.fetch_followers()

>>>medias = u.fetch_recent_media()
>>>print medias
[<Media: 935546412924881779_237074561>, <Media: 935398934535687014_237074561>, <Media: 935385433641536074_237074561>...]


>>>m = Media.remote.fetch('937539904871536462_190931988')
>>>comments = m.fetch_comments()
>>>likes = m.fetch_likes()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-instagram-api-0.2.1.tar.gz (31.6 kB view details)

Uploaded Source

File details

Details for the file django-instagram-api-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-instagram-api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bb6144033604af78a76f04cace74e6eeb0a1c92f903fee5614f27ed4b6fa5e11
MD5 fdeab3586f14d10a4dd88640d5be4a8f
BLAKE2b-256 25a3e4e9c0261de84ff655bf271ba5965416c46b9d3f198161d04c12f63944c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page