mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-03-13 04:28:11 +01:00
fix query selectors for google organic results
This commit is contained in:
parent
5a0eea201d
commit
5e83c58eaf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user