postaddictme / instagram-php-scraper

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

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

Closed talha-rafique closed 1 year ago

talha-rafique commented 1 year ago

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 ???

talha-rafique commented 1 year ago

ahh, my bad,

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