Skip to main content

Django Instagram API. Use your Instagram data anywhere. Includes cache feature in the case of Exceptions.

Project description

DJANGO-IGLINK

Version

1.3.0

Description

Add any instagram account data to any project. IGLINK differs from other Instagram API's, that when you reach the request limit put forth by Instagram, IGLINK will create a json cache file on every successful request, overwriting the previous file. When the request limit is hit or there is an exception, for example, 'keyError: ProfilePage', IGLINK will then return the last successful request from the cache file.
When the limit has been rest the cache file will be updated again with latest data.

Setup

#####https://pypi.org/project/django-iglink/

#pip install django-iglink or #pip3 install django-iglink

##In your Django project settings add 'iglink' to your installed apps:

####INSTALLED_APPS = [ ...

'iglink',

... ####]

Next add IGLINK urls to your main url conf for example:

###path('instagram/', include('iglink.urls')) or ###url(r'^instagram/', include('iglink.urls'))

Then run python manage.py migrate

Lastly in your root project folder make a directory called cache

Inside cache make 2 files called:

ig-profile-cache.json

and

ig-recent-media-cache.json

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-iglink-1.3.0.tar.gz (8.6 kB view hashes)

Uploaded Source

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