search media using tag name
var igScrap = require('ig-scrap')
igScrap.tag(tag /* tag or tag url */, callback)
igScrap.user(url /* user or user url */, callback )
//parsing url to item
var tag = igScrap.urlParser.tag(tag_url)
var user = igScrap.urlParser.user(user_url)
//https://www.instagram.com/explore/tags/{{tab}}/ or tag
igScrap.tag(tag_name/*or url*/, function (err, result) {
// var media = result.media
// media.getThumbnails({{size}})
// media.getStandards()
})
// https://www.instagram.com/{{userid}}/ or userid
igScrap.user(user/*or url*/, function (err, result) {
var media = result.media
var user = result.user
})
#test
- npm test
#change log
add image attribute and fix attribute 'date'
add |
---|
shortcode |
location |
ai_description |
change a instagram's data structor, and image Object's property
before | after |
---|---|
thumbnail_src | thumbnail_resources |
display_src | display_url |
demenstions | dimensions |
thumbnail_resources is List
media.thumbnails() -> media.getThumbnails(size)
media.standards() -> media.getStandards()