notslang / instagram-screen-scrape

scrape public instagram data w/out API access
https://npmjs.com/package/instagram-screen-scrape
GNU General Public License v3.0
162 stars 38 forks source link

Add support for retrieving content from hashtags. #14

Open rodrigograca31 opened 8 years ago

rodrigograca31 commented 8 years ago

Hi!

Recently (this month) Instagram stopped allowing us to get images from multiple users per hashtag....

This: https://www.instagram.com/explore/tags/nofilter/

As you can see, that is a public listing of all images with the hashtag "nofilter", but now it's impossible to do it through the API....

Would it be possible to modify this script to support hastags?

P.S. there are many people searching for a solution right now for the problem described.... I think that this could be a good solution.

Thanks!

electblake commented 8 years ago

seems like the best way into these might be POST https://www.instagram.com/query/

sample of decoded payload on tags page:

q=ig_hashtag(nofilters) { media.after(J0HV5u6nwAAAF0HV5u5GwAAAFkgA, 9) {
  count,
  nodes {
    caption,
    code,
    comments {
      count
    },
    date,
    dimensions {
      height,
      width
    },
    display_src,
    id,
    is_video,
    likes {
      count
    },
    owner {
      id
    },
    thumbnail_src,
    video_views
  },
  page_info
}
 }

ref=tags::show
raiym commented 8 years ago

@electblake do you know how J0HV5u6nwAAAF0HV5u5GwAAAFkgA this kind of info generating?

electblake commented 7 years ago

@raiym it sounds like a pagination token, similar to what facebook does. But that's just a guess sorry