preethamvishy / instapro

A Node.js library to get a wide range of public Instagram data without API keys or logging in. https://www.npmjs.com/package/instapro
MIT License
54 stars 18 forks source link

does not work correctly #1

Closed varave closed 5 years ago

varave commented 5 years ago

Hello, I ran your examples, the result: only a few examples work. default

preethamvishy commented 5 years ago

Instagram has closed the public graphql endpoints that this project uses.

varave commented 5 years ago

@preethamvishy, they are accessed if the user is authorized, maybe there is a solution?

preethamvishy commented 5 years ago

Yes. If the user is logged in and the URLs are accessed via the browser, valid data is returned. This was not a requirement earlier. Instagram kept changing the headers required to access these URLs and I tried to keep up for a while. I am sure that little tweaks to the requests made will get this working. I will try to fix this issue. However, you are welcome to create a PR and I will merge it. :)

preethamvishy commented 5 years ago

@inweid I have just added a few fixes :)