[GoogleSearch] Use other class for content retreiving (#1803)

This commit is contained in:
Eugene Molotov 2020-10-19 16:22:37 +05:00 committed by GitHub
parent 5e4f3c351e
commit 364b5282a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class GoogleSearchBridge extends BridgeAbstract {
$t = $element->find('a[href]', 0)->href; $t = $element->find('a[href]', 0)->href;
$item['uri'] = htmlspecialchars_decode($t); $item['uri'] = htmlspecialchars_decode($t);
$item['title'] = $element->find('h3', 0)->plaintext; $item['title'] = $element->find('h3', 0)->plaintext;
$item['content'] = $element->find('span[class=st]', 0)->plaintext; $item['content'] = $element->find('span[class=aCOpRe]', 0)->plaintext;
$this->items[] = $item; $this->items[] = $item;
} }