From 58fb7d3ca3a9558602a68ea4a15a6981755a3060 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 13 Aug 2021 19:34:28 +0200 Subject: add AlternativeTo engine --- config/searx/default.nix | 57 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 18 deletions(-) (limited to 'config/searx') diff --git a/config/searx/default.nix b/config/searx/default.nix index d8ec204..9fce810 100644 --- a/config/searx/default.nix +++ b/config/searx/default.nix @@ -99,24 +99,45 @@ in { "hoogle" # map "photon" - ]) ++ [{ - name = "emojipedia"; - engine = "xpath"; - search_url = "https://emojipedia.org/search/?q={query}"; - url_xpath = ''//ol[@class="search-results"]/li/h2/a/@href''; - title_xpath = ''//ol[@class="search-results"]/li/h2/a''; - content_xpath = ''//ol[@class="search-results"]/li/p''; - shortcut = "emoji"; - disabled = true; - about = { - website = "https://emojipedia.org/"; - wikidata_id = "Q22908129"; - official_api_documentation = ""; - use_official_api = false; - require_api_key = false; - results = "HTML"; - }; - }]; + ]) ++ [ + { + name = "emojipedia"; + engine = "xpath"; + search_url = "https://emojipedia.org/search/?q={query}"; + url_xpath = ''//ol[@class="search-results"]/li/h2/a/@href''; + title_xpath = ''//ol[@class="search-results"]/li/h2/a''; + content_xpath = ''//ol[@class="search-results"]/li/p''; + shortcut = "emoji"; + disabled = true; + about = { + website = "https://emojipedia.org/"; + wikidata_id = "Q22908129"; + official_api_documentation = ""; + use_official_api = false; + require_api_key = false; + results = "HTML"; + }; + } + { + name = "AlternativeTo"; + engine = "xpath"; + search_url = "https://alternativeto.net/browse/search?q={query}"; + url_xpath = ''//div[class="row app-list-item"]/div/h3/a/@href''; + title_xpath = ''//div[class="row app-list-item"]/div/h3/a''; + content_xpath = ''//div[class="row app-list-item"]/div[class="itemDesc read-more-box"]/p''; + shortcut = "a2"; + categories = "it"; + disabled = true; + about = { + website = "https://alternativeto.net"; + wikidata_id = "Q3613175"; + official_api_documentation = ""; + use_official_api = false; + require_api_key = false; + results = "HTML"; + }; + } + ]; }; runInUwsgi = true; uwsgiConfig = { -- cgit v1.2.3