instagram-php-scraper icon indicating copy to clipboard operation
instagram-php-scraper copied to clipboard

getAccount() and getPaginateMedias() doesn't work anymore.

Open TheSimpleCoder opened this issue 2 years ago • 22 comments

getAccount() and getPaginateMedias() doesn't work anymore. Need fix.

TheSimpleCoder avatar Jun 01 '22 12:06 TheSimpleCoder

Same thing here, cant fetch accounts or media.

adrianosmateus avatar Jun 02 '22 13:06 adrianosmateus

I changed the user-agent at src/InstagramScraper/Instagram.php:56 to private $userAgent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0 Mobile/14E5239e Safari/602.1'; and it worked again.

adrianosmateus avatar Jun 02 '22 13:06 adrianosmateus

This did not work for me. I think Instagram used a cookie to block requests. https://www.instagram.com/kevin/?a=1 This request shows the following error in Chrome and Firefox browsers 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 ": 1005620371}}}," lid ":" 7104639836351252026 "} but it works for two times in edge browser

Does anyone have a safe way to get posts on public Instagram pages?

sinagolchiin avatar Jun 02 '22 14:06 sinagolchiin

I'm having the same problem.

    [message:protected] => Response code is 200: OK.Something went wrong. Please report issue.
    [string:Exception:private] => 
    [code:protected] => 200
    [file:protected] => /vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php
    [line:protected] => 744

naearu avatar Jun 03 '22 00:06 naearu

Looks like the _sharedData object is not available anymore :/

rikless avatar Jun 03 '22 09:06 rikless

what will all crawlers do? :'(

tayfunyasar avatar Jun 03 '22 21:06 tayfunyasar

same issue here

nathnat avatar Jun 04 '22 07:06 nathnat

Looks like the _sharedData object is not available anymore :/

I agree too

im-api avatar Jun 04 '22 20:06 im-api

Same Issue :cry: I login with basic credentials and I tested some function :

  • searchAccountsByUsername -> works
  • getAccount -> doesn't work
  • getAccountById -> doesn't work
  • getMedias -> doesn't work
  • getAccountInfo -> doesn't work

Anyone has any idea whats the bug ?

Regards

pierregouret avatar Jun 07 '22 15:06 pierregouret

Same issue, browser private apis not working now.

safaksaylam avatar Jun 07 '22 18:06 safaksaylam

Same Issue 😢 I login with basic credentials and I tested some function :

* searchAccountsByUsername -> works

* getAccount -> doesn't work

* getAccountById -> doesn't work

* getMedias -> doesn't work

* getAccountInfo -> doesn't work

Anyone has any idea whats the bug ?

Regards

Instagram changed their frontend and got rid of everything that we need to make this work.

This repo (which is python) appears to have it working, with the mods listed in this issue/comment: https://github.com/arc298/instagram-scraper/issues/805#issuecomment-1147981554

I was able to do a scrape via the command line with this updated tool. (Although my IP got rate-limited by Instagram fairly quickly)

I assume it's just going to take some time for all the different scrapers out there to adapt to the updated Instagram UI.

iankaufmann avatar Jun 07 '22 18:06 iankaufmann

Yes, the _sharedData object has gone and getAccount() stopped working.

Denitz avatar Jun 10 '22 05:06 Denitz

is there a solution for this without using python?

farizaiis avatar Jun 15 '22 13:06 farizaiis

Didn't find any solution to the problem?

Vivatec avatar Jun 15 '22 17:06 Vivatec

There is no solution afaik. This package has to be archived or rewrite entirely

rikless avatar Jun 16 '22 06:06 rikless

@rikless any other working library that you can recommend please ?

sagitaire123 avatar Jun 22 '22 03:06 sagitaire123

no :/

rikless avatar Jun 22 '22 08:06 rikless

@rikless any other working library that you can recommend please ?

I use https://github.com/pgrimaud/instagram-user-feed and it works for retrieving posts.

pepea28 avatar Jun 24 '22 06:06 pepea28

I use https://github.com/pgrimaud/instagram-user-feed and it works for retrieving posts.

Well, i came here from this one because its stop working for me ;/

SrMordred avatar Jun 27 '22 12:06 SrMordred

@rikless any other working library that you can recommend please ?

I use https://github.com/pgrimaud/instagram-user-feed and it works for retrieving posts.

Thanks, it works like a charm !

rikless avatar Jul 11 '22 08:07 rikless

https://github.com/postaddictme/instagram-php-scraper/pull/1086

lwiml avatar Jul 21 '22 10:07 lwiml

the APIs https://rapidapi.com/neotank/api/instagram130/ still works fine.. weird

skmachine avatar Jul 26 '22 08:07 skmachine