Skip to content

Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.

License

Notifications You must be signed in to change notification settings

ymongo/Instagram-API-python

 
 

Repository files navigation

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 unverifird phone number after ~ 1-24 hours could not do any requests. All requests will be redirected to the page 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 test.py with your own username and password

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

    python test.py

Pip Installation Instructions

  1. Install via pip

    pip install -e git+https://github.com/LevPasha/Instagram-API-python.git#egg=InstagramAPI

  2. Import InstagramAPI from a python command prompt

    from InstagramAPI import InstagramAPI

Now InstagramAPI.py can:

  1. login;

  2. tagFeed (TODO);

  3. like;

  4. comment;

  5. deleteComment;

  6. expose;

  7. logout;

  8. editMedia;

  9. removeSelftag;

  10. mediaInfo;

  11. deleteMedia;

  12. getv2Inbox (TODO);

  13. getRecentActivity (TODO);

  14. megaphoneLog;

  15. timelineFeed;

  16. autoCompleteUserList;

  17. syncFeatures;

  18. removeProfilePicture;

  19. setPrivateAccount;

  20. setPublicAccount;

  21. getProfileData;

  22. editProfile;

  23. getUsernameInfo;

  24. getSelfUsernameInfo;

  25. getFollowingRecentActivity (TODO);

  26. getUserTags (TODO);

  27. getSelfUserTags;

  28. getMediaLikers (TODO);

  29. getGeoMedia (TODO);

  30. getSelfGeoMedia;

  31. fbUserSearch (TODO);

  32. searchUsers (TODO);

  33. searchUsername (TODO);

  34. syncFromAdressBook;

  35. searchTags (TODO);

  36. getTimeline (TODO);

  37. searchLocation (TODO);

  38. getSelfUserFeed;

  39. getPopularFeed (TODO);

  40. getUserFollowings;

  41. getUserFollowers;

  42. getSelfUserFollowers;

  43. getSelfUsersFollowing;

  44. unlike;

  45. getMediaComments;

  46. setNameAndPhone;

  47. getDirectShare;

  48. follow;

  49. unfollow;

  50. block;

  51. unblock;

  52. userFriendship;

  53. getLikedMedia;

  54. uploadPhoto;

TODO:

  1. changeProfilePicture;

  2. uploadVideo;

  3. direct_share;

  4. configureVideo;

  5. configure;

  6. getUserFeed;

  7. getHashtagFeed;

  8. getLocationFeed;

  9. backup;

  10. buildBody;

If you want to help - write what you want to do. In other cases, you can do the exact same work with another assistant or me.

About

Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%