Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

098

Experimenting with the IG API

Script to use the #Instagram #API to authenticate and pull your media

  1. Create an IG app:

    ig-api.png

     pip install [python-instagram](https://github.com/facebookarchive/python-instagram)
    
  2. Note this library is not actively maintained. get_access_token.py has a bug:

     $ python get_access_token.py
     ...
     instagram.oauth2.OAuth2AuthExchangeError: You must provide a client_id
    

    Patch with this fix or make your own method, e.g. exchange_code_for_access_token.

    Another required fix: when querying my media I got:

     for comment in entry['comments']['data']:
     KeyError: 'data'
    

    Fix here.

Conclusion: probably need to fork this repo or make own wrapper using requests or something.