nordhagen / instagram-tagscrape

NPM module for loading images from Instagram by hashtag without API access by means of scraping.
4 stars 8 forks source link

- #4

Closed rzlyp closed 6 years ago

rzlyp commented 6 years ago

hello

evolross commented 6 years ago

I’ll look at it, but not until early next week. On vacation currently.

smartium commented 6 years ago

The entire JSON structure has been changed to be compatible with grahql. The dict 'media', would now be in Array: graphql.hashtag.edge_hashtag_to_media.edges[n]

ikemura23 commented 6 years ago

I am getting the same error.

node_modules/instagram-tagscrape/index.js:48
                var media = data.entry_data.TagPage[0].tag.media;
                                                           ^

TypeError: Cannot read property 'media' of undefined
evolross commented 6 years ago

This is now fixed in my fork. Pull request submitted for this project.

NOTE: It's also fixed in some of the other forks of this project.