From 3afcb399a04a237322e3abc0c04e6663b200dd53 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 5 Aug 2024 12:18:57 +0000 Subject: [PATCH] fix google parser --- src/engines/search/google.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engines/search/google.rs b/src/engines/search/google.rs index 055101c..dbd2ebb 100644 --- a/src/engines/search/google.rs +++ b/src/engines/search/google.rs @@ -32,7 +32,9 @@ pub fn parse_response(body: &str) -> eyre::Result { .result("div.g > div, div.xpd > div:first-child") .title("h3") .href("a[href]") - .description("div[data-sncf='2'], div[style='-webkit-line-clamp:2']") + .description( + "div[data-sncf='2'], div[data-sncf='1,2'], div[style='-webkit-line-clamp:2']", + ) .featured_snippet("block-component") .featured_snippet_description(QueryMethod::Manual(Box::new(|el: &ElementRef| { let Some(description_container_el) = el