getMedias dont works
brassoy opened this issue · 5 comments
when i try to getMedias say me
InstagramScraper\Exception\InstagramException
Response code is 200: OK.Something went wrong. Please report issue.
stack trace throw error here
Instagram.php:742
if (!isset($userArray['entry_data']['ProfilePage'][0]['graphql']['user'])) {
throw new InstagramException('Response code is ' . $response->code . ': ' . static::httpCodeToString($response->code) . '.' .
'Something went wrong. Please report issue.', $response->code, static::getErrorBody($response->body));
}
I get medias with:
$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client());
$nonPrivateAccountMedias = $instagram->getMedias($clinic->instagram_user,$count);
during months works ok
thank you!
Warning 2022-06-01 - Instagram changed his DOM content and profile data loading
It seems to be a problem with trying to start a new session because Instagram has introduced a login with cookies.
@raiym Any suggestions about solving the problem?
Thank you!
in raiym\instagram-php-scraper\src\InstagramScraper\Instagram.php
change function getMedias
$account = $this->getAccount($username);
replace with
$account = $this->getAccountInfo($username);
and done
it works! thank you
Life savers
same issue for me today
Is this considered a fix? If so, how long until it becomes part of the code or next version?