postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.08k stars 798 forks source link

InstagramScrapper Error 200 #904

Closed ghost closed 3 years ago

ghost commented 3 years ago

I started getting InstagramScrapper 200 error suddenly. It was all working fine. There was no edit in any file.

What to do now?

davond commented 3 years ago

Same here. I tried to log in before calling getMedias, but without successfull. Still error 200, in raw response from instagram is http header 301 - Moved pernamently - into login section :/

KinaneD commented 3 years ago

Same here, getting an HTML response:

Response ```html "Response code is 200. Body: Login • Instagram
Something went wrong. Please report issue." ```
veuxx commented 3 years ago

There does not seem to be an IP blocking problem. I received this HTML response when the account was blocked. Try to authorize your login via instagram at: https://www.instagram.com/session/login_activity/ by clicking on "it was me"

Try to log in with another account. In time, try another IP or use a proxy for testing.

ghost commented 3 years ago

There does not seem to be an IP blocking problem. I received this HTML response when the account was blocked. Try to authorize your login via instagram at: https://www.instagram.com/session/login_activity/ by clicking on "it was me"

Try to log in with another account. In time, try another IP or use a proxy for testing.

But mine was well working withou login ( i have integrated without login ) Then what can be?

veuxx commented 3 years ago

I managed to reproduce your error. The endpoint may now need authentication. Try using a loogin and password, with different accounts too.

In time, did you test with proxy? there's a huge free list here: http://www.freeproxylists.net/?s=u Implementation is not difficult

    $config = new Config();
    $config->setDefaultTtl(86400);
    $instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(['proxy' => 'http://numberip:port']), $username, $password, new Psr16Adapter('Files', $config));
    $instagram->login();
    $instagram->saveSession(86400);

Furthermore, the script is working as expected, at least here (whith autentication)

ghost commented 3 years ago

I managed to reproduce your error. The endpoint may now need authentication. Try using a loogin and password, with different accounts too.

In time, did you test with proxy? there's a huge free list here: http://www.freeproxylists.net/?s=u Implementation is not difficult

  $config = new Config();
  $config->setDefaultTtl(86400);
  $instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(['proxy' => 'http://numberip:port']), $username, $password, new Psr16Adapter('Files', $config));
  $instagram->login();
  $instagram->saveSession(86400);

Furthermore, the script is working as expected, at least here (whith autentication)

Thankyou for your reply. I am sorry, but my integration was done by a Developer who is now no more available. Can you guide me which file to edit for integrating the scraper with login? And proxies.

veuxx commented 3 years ago

Obrigado por sua resposta. Sinto muito, mas minha integração foi feita por um desenvolvedor que agora não está mais disponível. Você pode me orientar sobre qual arquivo editar para integrar o raspador com o login? E proxies.

Send me your e-mail.

ghost commented 3 years ago

Obrigado por sua resposta. Sinto muito, mas minha integração foi feita por um desenvolvedor que agora não está mais disponível. Você pode me orientar sobre qual arquivo editar para integrar o raspador com o login? E proxies.

Send me your e-mail.

Theankitjais@gmail.com

Telegram @laptic

AbdouAzizDIOUF commented 3 years ago

I had this problem, who can help me please

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.instagram.com

veuxx commented 3 years ago

cURL error 60: SSL certificate problem:

it is difficult without having access to the codes, but your problem does not seem to be difficult to be solved ... you have already tried some basic solutions from here

restyler commented 3 years ago

Obrigado por sua resposta. Sinto muito, mas minha integração foi feita por um desenvolvedor que agora não está mais disponível. Você pode me orientar sobre qual arquivo editar para integrar o raspador com o login? E proxies.

Send me your e-mail.

Theankitjais@gmail.com

Telegram @Laptic

Free proxies most likely won't help you nowadays, because Instagram firewall rules are too strict, and free proxies are unstable. Take a look at proxified version of this scraper https://github.com/restyler/instagram-php-scraper - it uses residential proxies and response quality monitoring - I built it for my own project when free proxies approach failed for me..

stale[bot] commented 3 years ago

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.