fix google parser

This commit is contained in:
mat 2024-08-05 12:18:57 +00:00
parent d9be3107d8
commit 3afcb399a0

View File

@ -32,7 +32,9 @@ pub fn parse_response(body: &str) -> eyre::Result<EngineResponse> {
.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