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()
[![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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-instagram-api-0.1.7.tar.gz
.
File metadata
- Download URL: django-instagram-api-0.1.7.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8b0466d6bca828836c0a2503ffc1a406166f7b7c258af488d115d550368e27 |
|
MD5 | 2efd736f70f2702411f9f68e2ce4dc43 |
|
BLAKE2b-256 | 2e9272afbeabfbdda884c6c618dfd93388881147146ff17e1ef99e2b4816dc5a |