From 51df83cffaa45130f94bf5ab78b6b14fbb37ec4d Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Thu, 1 Sep 2022 10:56:55 +0200 Subject: engines: alternativeto: debug xpaths --- config/services/web/searx/searx/default.nix | 2 +- config/services/web/searx/searx/engines.nix | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'config') diff --git a/config/services/web/searx/searx/default.nix b/config/services/web/searx/searx/default.nix index 85e0d40..f1e7adb 100644 --- a/config/services/web/searx/searx/default.nix +++ b/config/services/web/searx/searx/default.nix @@ -21,7 +21,7 @@ in { settings = { use_default_settings = true; general = { - debug = false; + debug = true; contact_url = "mailto:quentin@${config.networking.domain}"; enable_stats = false; }; diff --git a/config/services/web/searx/searx/engines.nix b/config/services/web/searx/searx/engines.nix index 5e4609a..67de025 100644 --- a/config/services/web/searx/searx/engines.nix +++ b/config/services/web/searx/searx/engines.nix @@ -78,12 +78,11 @@ in { pageKeyword = "p"; extraParameters = { ignoreExactMatch = "true"; }; }; - results_xpath = '' - //article[@class="row app-list-item"]/div[@class="col-xs-10 col-sm-10 col-md-11 col-lg-offset-1 col-lg-11"]''; - url_xpath = "./h3/a/@href"; - title_xpath = "./h3/a"; - content_xpath = - ''./div[@class="itemDesc read-more-box"]/p[@class="text"]''; + results_xpath = ''//div[@class="AppListItem_appInfo__1jPpe"]''; + # ''//article[@class="row app-list-item"]/div[@class="col-xs-10 col-sm-10 col-md-11 col-lg-offset-1 col-lg-11"]''; + url_xpath = ".//h2/a/@href"; + title_xpath = ".//h2/a"; + content_xpath = "./span/p"; shortcut = "a2"; categories = "it"; disabled = true; -- cgit v1.2.3