Experimenting with the IG API
Script to use the #Instagram #API to authenticate and pull your media
-
Create an IG app:
pip install [python-instagram](https://github.com/facebookarchive/python-instagram) -
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_idPatch 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.
