bissolli / twitter-php-scraper

Twitter PHP Scraper. Get account information, tweets, likes, re-tweets and comments.
MIT License
15 stars 7 forks source link

The collection does not contain any Nodes #5

Open charbel opened 4 years ago

charbel commented 4 years ago
<?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 commented 4 years ago

Same error for me.

fers4t commented 4 years ago

same here

JacobDB commented 3 years ago

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