From 9648d71ad8643f538fb631399be52f76cfd1a56e Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Sat, 3 Jul 2021 18:54:43 +0200 Subject: [PATCH 1/2] [enh] add woxikon.de synonyme (Xpath) Added synonyme.woxikon.de using the xpath engine. Adds a site which returns word synonyms although just in German. Depending on the query not all synonyms are shown because of not the best xpath selection. But should do the job just fine. Upstream example query: https://synonyme.woxikon.de/synonyme/test.php --- searx/settings.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/searx/settings.yml b/searx/settings.yml index f6937358f..3df9952c0 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1477,6 +1477,23 @@ engines: timeout: 5.0 disabled: true + - name: woxikon.de synonyme + engine: xpath + shortcut: woxi + categories: general + timeout: 5.0 + disabled: true + search_url: https://synonyme.woxikon.de/synonyme/{query}.php + url_xpath: //div[@class="upper-synonyms"]/a/@href + content_xpath: //div[@class="synonyms-list-group"] + title_xpath: //div[@class="upper-synonyms"]/a + about: + website: https://www.woxikon.de/ + wikidata_id: # No Wikidata ID + use_official_api: false + require_api_key: false + results: HTML + - name: słownik języka polskiego engine: sjp shortcut: sjp From d5eedf1b6120ea576afb4e22138d4b7c5bc24240 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 3 Jul 2021 21:55:36 +0200 Subject: [PATCH 2/2] [yamllint] fix some warning issues reported by yamllint Signed-off-by: Markus Heiser --- searx/settings.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 3df9952c0..48eb6beb0 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1384,7 +1384,8 @@ engines: engine: json_engine paging: true # This API Token is needed to work - search_url: https://search.whaleslide.com/api/v1/search_v2/web/{pageno}?q={query}&api_token=f8OhUDEYKUICHDnIxEgI7Cb4uYyTBqT4nO8iueNbfTO3devS24yElGqM7nCm + search_url: + https://search.whaleslide.com/api/v1/search_v2/web/{pageno}?q={query}&api_token=f8OhUDEYKUICHDnIxEgI7Cb4uYyTBqT4nO8iueNbfTO3devS24yElGqM7nCm url_query: url title_query: title title_html_to_text: true @@ -1394,7 +1395,7 @@ engines: disabled: true about: website: https://whaleslide.com/ - wikidata_id: # No Wikidata page + wikidata_id: # No Wikidata page official_api_documentation: false use_official_api: false require_api_key: false @@ -1489,7 +1490,7 @@ engines: title_xpath: //div[@class="upper-synonyms"]/a about: website: https://www.woxikon.de/ - wikidata_id: # No Wikidata ID + wikidata_id: # No Wikidata ID use_official_api: false require_api_key: false results: HTML