diff options
Diffstat (limited to 'config/searx')
| -rw-r--r-- | config/searx/default.nix | 59 |
1 files changed, 41 insertions, 18 deletions
diff --git a/config/searx/default.nix b/config/searx/default.nix index 5082ad7..74a29eb 100644 --- a/config/searx/default.nix +++ b/config/searx/default.nix @@ -99,24 +99,47 @@ 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"; + paging = true; + search_url = "https://alternativeto.net/browse/search?q={query}&p={pageno}"; + 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"]''; + 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 = { |
