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

Uncaught TypeError #2

Open
agnelvishal opened this issue Oct 11, 2018 · 0 comments
Open

Uncaught TypeError #2

agnelvishal opened this issue Oct 11, 2018 · 0 comments

Comments

@agnelvishal
Copy link

agnelvishal commented Oct 11, 2018

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);
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

1 participant