From 927afbff72a34054bc540c0806e6c4eb9737c028 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Tue, 26 Oct 2021 12:06:55 +0200 Subject: add nlab engine --- config/services/web/searx/searx/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'config/services') diff --git a/config/services/web/searx/searx/default.nix b/config/services/web/searx/searx/default.nix index 9550fc6..6306a35 100644 --- a/config/services/web/searx/searx/default.nix +++ b/config/services/web/searx/searx/default.nix @@ -117,6 +117,25 @@ in { name = "duckduckgo"; disabled = false; } + { + name = "nLab"; + engine = "xpath"; + search_url = "https://ncatlab.org/nlab/search?query={query}"; + url_xpath = "//li/a/@href"; + title_xpath = "//li/a"; + content_xpath = "//li/a"; + shortcut = "nlab"; + categories = "science"; + disabled = true; + about = { + website = "https://ncatlab.org/"; + wikidata_id = "Q6954693"; + official_api_documentation = ""; + use_official_api = false; + require_api_key = false; + results = "HTML"; + }; + } ]; }; }; -- cgit v1.2.3