Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function parseNode(GoogleDom $dom, \DomElement $node)
// find the title/url
/* @var $aTag \DOMElement */
$aTag = $dom
->xpathQuery("descendant::*[(self::div or self::h3) and @class='r'][1]/a", $node)
->xpathQuery("descendant::*[(self::div or self::h3) and @class='yuRUbf'][1]/a", $node)
->item(0);
if (!$aTag) {
throw new InvalidDOMException('Cannot parse a classical result.');
Expand All @@ -56,7 +56,7 @@ protected function parseNode(GoogleDom $dom, \DomElement $node)
}

$descriptionTag = $dom
->xpathQuery("descendant::span[@class='st']", $node)
->xpathQuery("descendant::span[@class='aCOpRe']", $node)
->item(0);

return [
Expand Down