pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
872 stars 136 forks source link

Profile #1 : Unable to extract JSON data #291

Open WallisonBreno opened 2 years ago

WallisonBreno commented 2 years ago

I've been getting this error when i use the getProfile function, has nothing to do with cache or authenticity of the account

pgrimaud commented 2 years ago

Hey, could you try to update to v6.15.0 version. Instagram made some changes and I (hopefully) fixed it this morning.

RoseGoli commented 2 years ago

hi i have such same errors on posts data fetch from :

pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php Syntax error on line 61!

pgrimaud commented 2 years ago

hi

i have such same errors on posts data fetch from :

pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php

Syntax error on line 61!

Did you tried to upgrade to 6.15?

RoseGoli commented 2 years ago

yes i do this the getBody result : for (;;);{"redirect":"https://www.instagram.com/p/Cc-wIYPDhUt/"}

hi i have such same errors on posts data fetch from : pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php Syntax error on line 61!

Did you tried to upgrade to 6.15?

yes i do this the getBody result : for (;;);{"redirect":"https://www.instagram.com/p/Cc-wIYPDhUt/"}

andreifiroiu commented 2 years ago

Yup, unfortunatelly Instagram is responding inconsistently when trying to get media data by calling instagram.com/p/[shorcode]?__a=1 (apparently based on login data and IP history). When isn't in the mood, will return:

for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005640913}}},"lid":"7106408698253330412"}

RoseGoli commented 2 years ago

Yup, unfortunatelly Instagram is responding inconsistently when trying to get media data by calling instagram.com/p/[shorcode]?__a=1 (apparently based on login data and IP history). When isn't in the mood, will return:

for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005640913}}},"lid":"7106408698253330412"}

there is an other way like 'graphql/query' to get posts now lib should be updated...

pgrimaud commented 2 years ago

lib should be updated...

Feel free to open a PR 😄

RoseGoli commented 2 years ago

image i dont really know how to use github but this is what i did to the pervious version of library and now its working just fine with graph api

by the way i also made a proxy response class so i could change items formate to graphql too so there would be no issue

RoseGoli commented 2 years ago

lib should be updated...

Feel free to open a PR 😄

hi there i wanna ask if you have a telegram account/group where we can talk maybe? it would be really cool to committee information in such platform...

alisamie97 commented 2 years ago

I get this error when trying to login. I have used this in local and remote server. The local server works but remote server fails. I also upgraded to 6.15

Rubberg commented 1 year ago

Still the same pb. Method getProfile() returns code 200 with some html as datas (probably the instagram login page) causing a Syntax error in json_decode().

There are many issues opened for the same error : https://github.com/pgrimaud/instagram-user-feed/issues/335 https://github.com/pgrimaud/instagram-user-feed/issues/318 https://github.com/pgrimaud/instagram-user-feed/issues/298

AgentSmith0 commented 8 months ago

This seems to be fixed in 6.16.6.