PyInstagramAPI

Unofficial instagram API, provides you with access to ALL Instagram features.


License
GPL-3.0
Install
pip install PyInstagramAPI==1.0.4

Documentation

NOTE: This is a fork of the Instagram-API-Python by LevPasha, as the original seems to have gone stale.

Instagram-API-python

Unofficial Instagram API to give you access to ALL Instagram features (like, follow, upload photo and video, etc)! Written in Python.

This is the Python port of https://github.com/mgp25/Instagram-API which is written in PHP. It is still a work in progress to copy all of its API endpoints.

NOTE: To successfully parse for a long time you should verify your phone number in your Instagram account. The new fake Instagram account with an unverified phone number after ~ 1-24 hours could not do any requests. All requests will be redirected to the page https://instagram.com/challenge

Installation Instructions

  1. Fork/Clone/Download this repo

    git clone https://github.com/LevPasha/Instagram-API-python.git

  2. Navigate to the directory

    cd Instagram-API-python

  3. Install the dependencies

    pip install -r requirements.txt

  4. Modify examples\test.py with your own username and password

  5. Run the test.py script (use text editor to edit the script and type in valid Instagram username/password)

Pip Installation Instructions

  1. Install via pip

    pip install PyInstagramAPI

    or

    py -m install PyInstagramAPI

  2. Import PyInstagramAPI from a python command prompt

    from PyInstagramAPI import PyInstagramAPI