serp-spider / search-engine-google

:spider: Google client for SERPS
https://serp-spider.github.io
Other
165 stars 61 forks source link

fix total number of results - GG changes id name #128

Open nhutle opened 4 years ago

nhutle commented 4 years ago

If I'm not mistaken, Google has changed id name of total result from #resultStats -> #result-stats, so this patch will fix it.


This change is Reviewable

arcaniafr commented 3 years ago

Correct code :

$item = $this->cssQuery('#resultStats');

if ($item->length != 1) { $item = $this->cssQuery('#result-stats'); } else { return null; }