This commit is contained in:
Przemek Nowicki 2020-10-30 13:25:35 +01:00 committed by GitHub
commit 52675092ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,11 +57,11 @@ class GoogleScraper extends Scraper {
organic_results.forEach((el) => {
let serp_obj = {
link: _attr(el, '.r a', 'href'),
title: _text(el, '.r a h3'),
snippet: _text(el, 'span.st'),
visible_link: _text(el, '.r cite'),
date: _text(el, 'span.f'),
link: _attr(el, '.rc a', 'href'),
title: _text(el, '.rc a h3'),
snippet: _text(el, '.rc > div:nth-child(2) span span'),
visible_link: _text(el, '.rc cite'),
date: _text(el, '.rc > div:nth-child(2) span.f'),
};
if (serp_obj.date) {