Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response code is 200 #756

Closed
sareban101 opened this issue Aug 24, 2020 · 9 comments
Closed

Response code is 200 #756

sareban101 opened this issue Aug 24, 2020 · 9 comments
Labels

Comments

@sareban101
Copy link

sareban101 commented Aug 24, 2020

hi

i use this sample:
'$instagram = new \InstagramScraper\Instagram();
$nonPrivateAccountMedias = $instagram->getMedias('kevin');
echo $nonPrivateAccountMedias[0]->getLink();`

but

Uncaught InstagramScraper\Exception\InstagramException: Response code is 200. Body:

<title> Login • Instagram </title>

please help me``

@amurzaliev
Copy link

I get the same error

@miguelon85
Copy link

me too

@ghost
Copy link

ghost commented Aug 26, 2020

Seems Instagram blocks too much IPs.

Try to use a proxy.

@curiousteam
Copy link

Same problem faced.

@tenet912
Copy link

after instagram new update , you must login first to use script . in first login after that you can use script

$instagrams = \InstagramScraper\Instagram::withCredentials($usermain, $passmain, new Psr16Adapter('Files')); $instagrams->login(); $instagrams->saveSession();

@janKossin
Copy link

I've made this:
try { $instagram = Instagram::withCredentials('sneak.week', 'PASSWORD', new Psr16Adapter('Files')); $instagram->login(); $instagram->saveSession(); } catch (InstagramAuthException $e) {} catch (InstagramException $e) {} catch (\Psr\SimpleCache\InvalidArgumentException $e) {}

And always get this error:

InstagramScraper\Exception\InstagramException: Response code is 200. Body:
Something went wrong. Please report issue. in /home/webpages/lima-city/minekoss/beta.sneak-week.de/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:461 Stack trace: #0 /home/webpages/lima-city/minekoss/beta.sneak-week.de/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(432): InstagramScraper\Instagram->getAccount('sneak.week') #1 /home/webpages/lima-city/minekoss/beta.sneak-week.de/assets/test.php(11): InstagramScraper\Instagram->getMedias('sneak.week') #2 {main}

I don't know why

@restyler
Copy link

I've encountered the same issues from my server, this happens because Instagram actively bans datacenter ip ranges. So I've implemented proxified version of scraper, feel free to try it out: https://github.com/restyler/instagram-php-scraper/tree/proxified (this requires RapidAPI account). I use it successfully for my own project (public Instagram analyzer bot https://t.me/instalyzebot )
I currently can't reliably recommend it for authenticated calls though - since proxy balancer actively switches ip addresses, and I've heard Instagram may track ip addresses during login.

@stale
Copy link

stale bot commented Dec 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 4, 2020
@stale stale bot closed this as completed Dec 13, 2020
@glushko3707
Copy link

InstagramScraper\Exception\InstagramException
Response code is 200: OK.Something went wrong. Please report issue.

Now this problem is relevant to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants