postaddictme / instagram-php-scraper

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

Can't use methods. #806

Closed Fuadtag closed 3 years ago

Fuadtag commented 4 years ago

Want to get media or followers of account.But response is 'Something went wrong. Please report issue.'

igorbelikov commented 4 years ago
{"message": "rate limited", "status": "fail"}

@Fuadtag do you have same response too?

LuckyKing0307 commented 4 years ago

I have same problems with getMediaCommentsByCode,getMediaLikesByCode HELP PLS

igorbelikov commented 4 years ago

@LuckyKing0307 same issue(

LuckyKing0307 commented 4 years ago

@igorbelikov,@raiym instagram did that we should login for parse contents.If u try open list of like or comments in instagram with out login(i think no one couldn't) :)

Fuadtag commented 4 years ago

@LuckyKing0307 Tried to get data after instagram login but nothing changed 😀

LuckyKing0307 commented 4 years ago

@Fuadtag i think it is not work with getcomments and likes

igorbelikov commented 4 years ago

yes, I understand, but if you try to open comments as anonym for some publication in web version — you get all comments, but in graph api we have error, I think we should modify request headers

LuckyKing0307 commented 4 years ago

@igorbelikov i need list of likes,but comment doesn't not working too

Fuadtag commented 4 years ago

Actually i can get user information but followers and following count are 0.

igorbelikov commented 4 years ago

@LuckyKing0307, I too

LuckyKing0307 commented 4 years ago

can i send code?

LuckyKing0307 commented 4 years ago

require 'vendor/autoload.php'; use Phpfastcache\Helper\Psr16Adapter; $likes = array(); $instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'username', 'pass', new Psr16Adapter('Files')); $instagram->login();

$comments = $instagram->getMediaCommentsByCode('BG3Iz-No1IZ', 10);

print_r($comments);

LuckyKing0307 commented 4 years ago

that is working

LuckyKing0307 commented 4 years ago

<?php require 'vendor/autoload.php'; use Phpfastcache\Helper\Psr16Adapter; $likes = array(); $instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'username', 'pass', new Psr16Adapter('Files')); $instagram->login();

$comments = $instagram->getMediaLikesByCode('BG3Iz-No1IZ', 10);

print_r($comments);

LuckyKing0307 commented 4 years ago

<?php require 'vendor/autoload.php'; use Phpfastcache\Helper\Psr16Adapter; $likes = array(); $instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'user', 'pass', new Psr16Adapter('Files')); $instagram->login(); $comments = $instagram->getMediaLikesByCode('BG3Iz-No1IZ', 10); print_r($comments); that for likes works too

Fuadtag commented 4 years ago

Tried that but still cant get media by code.Error is 'Media with this code does not exist'

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.