postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.

Home Page:https://packagist.org/packages/raiym/instagram-php-scraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Uncaught Error: Class "GuzzleHttp\Client" not found

talha-rafique opened this issue · comments

hi, actually im very new to php , so i downloaded code via composer. using command composer require raiym/instagram-php-scraper phpfastcache/phpfastcache

im trying to run an example -> getStory.php.
i just make sure autoload.php file should be included and correct path.
and have all libarary like as phpFastCahe , guzzlehttp etc... with same folder herarichy as i received via composer.

but here
\InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), "username", "password", new Psr16Adapter('Files'))

i got the error Class "GuzzleHttp\Client" not found.

Can you please tell me where is the issue ???

ahh, my bad,

i did not run
composer update command and that was the issue comes up.
but now it's fine. and solved.