diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-08-13 19:34:28 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-08-13 19:34:28 +0200 |
| commit | 58fb7d3ca3a9558602a68ea4a15a6981755a3060 (patch) | |
| tree | 6bcd5ebbca7424f5aad003a66040f9b56543f2a9 | |
| parent | 4d9054114c830fb951dd27d816d5b74f3522bdb5 (diff) | |
add AlternativeTo engine
| -rw-r--r-- | config/searx/default.nix | 57 |
1 files changed, 39 insertions, 18 deletions
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 = { |
