-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello.
I am new to this repository.
I get the error.
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Yoozi\Miner\Extractor::fromUrl() must be an instance of Buzz\Client\ClientInterface or null, instance of Buzz\Client\Curl given,
This is the code I use
require_once('vendor/autoload.php');
use Yoozi\Miner\Extractor;
use Buzz\Client\Curl;
$extractor = new Extractor();
// Use the Hybrid Parser.
$extractor->getConfig()->set('parser', 'meta');
// Strip all HTML tags in the description we parsed.
$extractor->getConfig()->set('strip_tags', true);
$meta = $extractor->fromUrl('https://www.skcript.com/svr/protocol-buffers-may-be-the-next-data-serialization-game-changer', new Curl)->run();
var_dump($meta);
Metadata
Metadata
Assignees
Labels
No labels