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

Не работает #75

Closed
slavame opened this issue Mar 17, 2017 · 1 comment
Closed

Не работает #75

slavame opened this issue Mar 17, 2017 · 1 comment

Comments

@slavame
Copy link

slavame commented Mar 17, 2017

Привет!
Установил через composer http://take.ms/uugED
Скопировал файл index.php в корень запускаю - ошибка

Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/insta/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 351

Notice: Undefined index: csrftoken in /Applications/MAMP/htdocs/insta/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 522

Notice: Undefined index: sessionid in /Applications/MAMP/htdocs/insta/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 523

Fatal error: Uncaught InstagramScraper\Exception\InstagramNotFoundException: Account with given username does not exist. in /Applications/MAMP/htdocs/insta/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:418 Stack trace: #0 /Applications/MAMP/htdocs/insta/index.php(48): InstagramScraper\Instagram->getTopMediasByTagName('hello') #1 {main} thrown in /Applications/MAMP/htdocs/insta/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 418

Что я делаю не так?

@raiym
Copy link
Member

raiym commented Mar 20, 2017

$instagram = Instagram::withCredentials('PASTE_LOGIN', 'PASTE_PASSWORD');
$instagram->login();

нужно ввести свой логин и пароль

@raiym raiym closed this as completed Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants