raulr / google-play-scraper

A PHP scraper to get app data from Google Play
MIT License
125 stars 65 forks source link

Fatal error: Uncaught InvalidArgumentException: The current node list is empty #18

Open skadimoolam opened 6 years ago

skadimoolam commented 6 years ago

My Code

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

use Raulr\GooglePlayScraper\Scraper;

$scraper = new Scraper();

$appDetail = $scraper->getApp('in.simplestweb.vanagam');   // Throws the exception
var_dump($appDetail);

$apps = $scraper->getSearch('vanagam', "all", "all", "ta", "IN");    // This request works as expected
var_dump($apps);

I see that this problem has been issued twice before here but none of their fixes helped me. getSearch method works as expected but when I try to get an app using getApp method, the exception is raised. I tried the code from the example mentioned in the readme file.

Would love to know what the error here is.

image