0
0
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:
Jann Marc Villablanca 2024-12-14 04:40:16 +08:00 committed by GitHub
parent 2e64fd5cbc
commit ab126b9d70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"],
))