Skip to content

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

Open
nhutle wants to merge 1 commit into
serp-spider:masterfrom
nhutle:fix-getNumberOfResults
Open

fix total number of results - GG changes id name#128
nhutle wants to merge 1 commit into
serp-spider:masterfrom
nhutle:fix-getNumberOfResults

Conversation

@nhutle

@nhutle nhutle commented Apr 15, 2020

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Correct code :

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

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

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

Successfully merging this pull request may close these issues.

2 participants