diff --git a/src/engines/mojeek.rs b/src/engines/mojeek.rs index d3b13b6..60422d0 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"], ))