mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-12-22 04:18:21 -05:00
👽 fix: mojeek
parser update due to upstream breaking api changes (#640)
This commit is contained in:
parent
2e64fd5cbc
commit
ab126b9d70
@ -30,8 +30,8 @@ impl Mojeek {
|
|||||||
parser: SearchResultParser::new(
|
parser: SearchResultParser::new(
|
||||||
".result-col",
|
".result-col",
|
||||||
".results-standard li",
|
".results-standard li",
|
||||||
"a span.url",
|
"h2 > a.title",
|
||||||
"h2 a.title",
|
"a.ob",
|
||||||
"p.s",
|
"p.s",
|
||||||
)?,
|
)?,
|
||||||
})
|
})
|
||||||
@ -157,7 +157,7 @@ impl SearchEngine for Mojeek {
|
|||||||
.parse_for_results(&document, |title, url, desc| {
|
.parse_for_results(&document, |title, url, desc| {
|
||||||
Some(SearchResult::new(
|
Some(SearchResult::new(
|
||||||
title.inner_html().trim(),
|
title.inner_html().trim(),
|
||||||
url.inner_html().trim(),
|
url.attr("href")?.trim(),
|
||||||
desc.inner_html().trim(),
|
desc.inner_html().trim(),
|
||||||
&["mojeek"],
|
&["mojeek"],
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user