twitter-php-scraper icon indicating copy to clipboard operation
twitter-php-scraper copied to clipboard

The collection does not contain any Nodes

Open charbel opened this issue 5 years ago • 3 comments
trafficstars

<?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

charbel avatar Aug 31 '20 13:08 charbel

Same error for me.

jacmaes avatar Sep 08 '20 11:09 jacmaes

same here

fers4t avatar Oct 05 '20 16:10 fers4t

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

JacobDB avatar Sep 24 '21 15:09 JacobDB