mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-12-21 20:08: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(
|
||||
".result-col",
|
||||
".results-standard li",
|
||||
"a span.url",
|
||||
"h2 a.title",
|
||||
"h2 > a.title",
|
||||
"a.ob",
|
||||
"p.s",
|
||||
)?,
|
||||
})
|
||||
@ -157,7 +157,7 @@ impl SearchEngine for Mojeek {
|
||||
.parse_for_results(&document, |title, url, desc| {
|
||||
Some(SearchResult::new(
|
||||
title.inner_html().trim(),
|
||||
url.inner_html().trim(),
|
||||
url.attr("href")?.trim(),
|
||||
desc.inner_html().trim(),
|
||||
&["mojeek"],
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user