Skip to main content

Unofficial instagram API

Project description

insta_api

image image GitHub

insta_api is a pythonic (unofficial) instagram client. It has been backwards engineered from the ground up. Currently it supports essential behavior such as liking, following other users, as well as posting photos.

Installation

To install simply do:

$ pip install insta_api

Example usage

Getting started

The first thing you should do is import the insta_api module

from insta_api import insta_api

Login to your instagram account

insta = InstaAPI()
insta.login(USERNAME, PASSWORD)

Usage

Liking posts

You can like posts by either using shortcode or media_id. The shortcode can be obtained by looking at the URL of a post in the addressbar.

It looks something like this Bov3uZUFJRh

insta.like(shortcode)

If you are a more advanced user, you may want to use the media_id instead, this will also work.

Following users

To follow an user you need one of two things: either their username or their unique user id

For example, to like by username:

insta.follow(my_username)

And more...

See the documentation for more info.

Testing

You must set up your own testing server, like Jenkins, for example. This is because instagram will block any of the online CI integration tools due to the nature of their dynamic IPs

You should also configure your testing instagram credentials by adding the INSTA_API_USER and INSTA_API_PASSWORD environmental variables to your isolated testing system.

Author(s)

Copyright

Copyright (c) 2013 Orlando Diaz

For more info see LICENSE

Legal

This program is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk

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

insta_api-0.2.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insta_api-0.2.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file insta_api-0.2.1.tar.gz.

File metadata

  • Download URL: insta_api-0.2.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for insta_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 38651934fe57444652097dd7c458bd901dc22f708bc4b723811a4f58d9fe7b9e
MD5 c8a6dd665a6176ef89c7326c1e83a5c1
BLAKE2b-256 e847f8549b1f9f7c0126f3fd74b1c84007ae4df86dd487d29aa5456386044a81

See more details on using hashes here.

File details

Details for the file insta_api-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: insta_api-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for insta_api-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc11101e7dd0c345fc7611f438c2d2ec3d83bc1adb7185f24b21dbd6238874f3
MD5 f55fbedb5302226ac4dd448388b94789
BLAKE2b-256 b290782b27dc7bc80d34956e286044fbd75d1f309114678b7eca62a2fee811cb

See more details on using hashes here.

Supported by

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