Skip to content

Commit

Permalink
🐛 fix: refine mojeek parser due to upstream breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfvillablanca committed Dec 11, 2024
1 parent 2e64fd5 commit 2988131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engines/mojeek.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)?,
})
Expand Down Expand Up @@ -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"],
))
Expand Down

0 comments on commit 2988131

Please sign in to comment.