api - Instagram: sort photos with a specific tag with most likes -


i'm running contest on web image likes wins. it's tiresom having go through 900 images manually want is, sort images tag lets #computer after amount of likes, liked pics on top. have searched net crazy program or site (extragram, gramhoot, statigram, webstagram) none offer sort amount of likes , drives me insane! it's relevant request.

i've tried istafeed.js doesn't include images, leaves out ones moest likes defies purpose.

there's nothing know of in instagram api sends media sorted likes in advance. don't think there's tool either, writing 1 relatively simple imo , i've done before contest specifically.

the simplest thing do following:

  1. use instagram api (via library or pure rest) query tag. instance, if care tagged media or want process date, can use [/tag/tag-name/media/recent][1] enpoint.

  2. page through each result page processing next_max_id/next_max_tag_id.

  3. collect results locally database. receive "like" count each media item. have update data if want track likes on time.

  4. sort results using database or if it's small result set, skip #3 , sort in memory.

  5. if need refresh results, need subscribe tag via api. can give instagram url push updates, , you'll have retrieve 1 or media items , update them in database accordingly.

you of course need register application instagram api key if want this. can either send them client_id or use oauth.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -