From 29881316c494bedce75388eda7a9d22efd0604c6 Mon Sep 17 00:00:00 2001 From: jfvillablanca <31008330+jfvillablanca@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:22:23 +0800 Subject: [PATCH] :bug: fix: refine mojeek parser due to upstream breaking changes --- src/engines/mojeek.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engines/mojeek.rs b/src/engines/mojeek.rs index d3b13b6c..60422d09 100644 --- a/src/engines/mojeek.rs +++ b/src/engines/mojeek.rs @@ -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"], ))