Instagram-php-scraper: Class 'GuzzleHttp\Client' not found

Created on 8 Nov 2020  路  4Comments  路  Source: postaddictme/instagram-php-scraper

use Phpfastcache\Helper\Psr16Adapter;

$instagram = \InstagramScraper\Instagram::withCredentials(new GuzzleHttp\Client(), 'username', 'password', new Psr16Adapter('Files'));
$instagram->login();
$instagram->saveSession();

Error: Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in W:\domains\insta-api.com\index.php:7 Stack trace: #0 {main} thrown in W:\domains\insta-api.com\index.php on line 7

Most helpful comment

The guzzle dependency is missing. Jou can solve this by adding it using composer: composer require guzzlehttp/guzzle

All 4 comments

And me exist this problem

The guzzle dependency is missing. Jou can solve this by adding it using composer: composer require guzzlehttp/guzzle

install "composer require phpfastcache/phpfastcache" + "composer require guzzlehttp/guzzle" and successfully

Thx all!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

limminho picture limminho  路  8Comments

eelcol picture eelcol  路  5Comments

Tvvinman picture Tvvinman  路  7Comments

luengwaiban picture luengwaiban  路  5Comments

JOniiX picture JOniiX  路  6Comments