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

The collection does not contain any Nodes #5

Open
charbel opened this issue Aug 31, 2020 · 3 comments
Open

The collection does not contain any Nodes #5

charbel opened this issue Aug 31, 2020 · 3 comments

Comments

@charbel
Copy link

charbel commented Aug 31, 2020

<?php
require __DIR__ . '/vendor/autoload.php';

$twitter = new \Bissolli\TwitterScraper\Twitter('official_php');
var_dump($twitter->getProfile());

?>

Fatal error: Uncaught PHPHtmlParser\Exceptions\EmptyCollectionException: The collection does not contain any Nodes. in .\vendor\paquettg\php-html-parser\src\PHPHtmlParser\Dom\Collection.php:40
Stack trace:
#0 .\vendor\bissolli\twitter-php-scraper\src\Twitter.php(45): PHPHtmlParser\Dom\Collection->__call('find', Array)
#1 .\vendor\bissolli\twitter-php-scraper\src\Twitter.php(29): Bissolli\TwitterScraper\Twitter->extractProfileCard()
#2 test.php(5): Bissolli\TwitterScraper\Twitter->__construct('official_php')
#3 {main}
thrown in vendor\paquettg\php-html-parser\src\PHPHtmlParser\Dom\Collection.php on line 40

@jacmaes
Copy link

jacmaes commented Sep 8, 2020

Same error for me.

@fers4t
Copy link

fers4t commented Oct 5, 2020

same here

@JacobDB
Copy link

JacobDB commented Sep 24, 2021

Did y'all ever figure this out? Running in to the same issue...

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

4 participants