From 536eb2b8dd623172c13ac17797582c8949956d7b Mon Sep 17 00:00:00 2001 From: Splinter Suidman Date: Sun, 5 Apr 2020 19:27:44 +0200 Subject: [PATCH 1/5] Add Wikimedia projects. A list of the added projects: - Wikibooks - Wikinews - Wikiquote - Wikisource - Wiktionary - Wikiversity - Wikivoyage --- AUTHORS.rst | 1 + searx/settings.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 9ab78b050..462b17017 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -123,3 +123,4 @@ generally made searx better: - Vipul @finn0 - @CaffeinatedTech - Robin Schneider @ypid +- @splintah diff --git a/searx/settings.yml b/searx/settings.yml index 078d95b72..042315bee 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -686,6 +686,76 @@ engines: engine : vimeo shortcut : vm + - name : wikibooks + engine : mediawiki + shortcut : wb + categories : general + base_url : "https://{language}.wikibooks.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikinews + engine : mediawiki + shortcut : wn + categories : general + base_url : "https://{language}.wikinews.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikiquote + engine : mediawiki + shortcut : wq + categories : general + base_url : "https://{language}.wikiquote.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikisource + engine : mediawiki + shortcut : ws + categories : general + base_url : "https://{language}.wikisource.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikitionary + engine : mediawiki + shortcut : wt + categories : general + base_url : "https://{language}.wiktionary.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikiversity + engine : mediawiki + shortcut : wvs + categories : general + base_url : "https://{language}.wikiversity.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + + - name : wikivoyage + engine : mediawiki + shortcut : wvy + categories : general + base_url : "https://{language}.wikivoyage.org/" + number_of_results : 5 + search_type : text + disabled : True + query : "srsearch={query}" + - name : wolframalpha shortcut : wa # You can use the engine using the official stable API, but you need an API key From 2b453cb226a4c0f73a55691810a601fc05143196 Mon Sep 17 00:00:00 2001 From: Splinter Suidman Date: Mon, 6 Apr 2020 12:31:00 +0200 Subject: [PATCH 2/5] fix: Change Wikinews category to news. --- searx/settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index 042315bee..42e655b19 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -699,7 +699,7 @@ engines: - name : wikinews engine : mediawiki shortcut : wn - categories : general + categories : news base_url : "https://{language}.wikinews.org/" number_of_results : 5 search_type : text From c37544e6be155bb5ad167a79f852a5dd7ede5df6 Mon Sep 17 00:00:00 2001 From: Splinter Suidman Date: Mon, 6 Apr 2020 12:31:32 +0200 Subject: [PATCH 3/5] fix: Spelling of Wiktionary. --- searx/settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index 42e655b19..3ac3f87d3 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -726,7 +726,7 @@ engines: disabled : True query : "srsearch={query}" - - name : wikitionary + - name : wiktionary engine : mediawiki shortcut : wt categories : general From 87fba9c12dfa95b6bb7048d1c0e7536df33cd894 Mon Sep 17 00:00:00 2001 From: Splinter Suidman Date: Mon, 6 Apr 2020 15:59:00 +0200 Subject: [PATCH 4/5] fix: Remove unnecessary query parameter for Wikimedia projects. --- searx/settings.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 3ac3f87d3..8e817907a 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -694,7 +694,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wikinews engine : mediawiki @@ -704,7 +703,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wikiquote engine : mediawiki @@ -714,7 +712,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wikisource engine : mediawiki @@ -724,7 +721,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wiktionary engine : mediawiki @@ -734,7 +730,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wikiversity engine : mediawiki @@ -744,7 +739,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wikivoyage engine : mediawiki @@ -754,7 +748,6 @@ engines: number_of_results : 5 search_type : text disabled : True - query : "srsearch={query}" - name : wolframalpha shortcut : wa From 83fa88cbec949c0916d7d8854865512a5485b3f3 Mon Sep 17 00:00:00 2001 From: Splinter Suidman Date: Tue, 7 Apr 2020 11:05:35 +0200 Subject: [PATCH 5/5] fix: Change Wikiversity and Wikivoyage shortcuts to wv and wy. Suggested by @Venca24 . --- searx/settings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 8e817907a..3050aedf5 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -733,7 +733,7 @@ engines: - name : wikiversity engine : mediawiki - shortcut : wvs + shortcut : wv categories : general base_url : "https://{language}.wikiversity.org/" number_of_results : 5 @@ -742,7 +742,7 @@ engines: - name : wikivoyage engine : mediawiki - shortcut : wvy + shortcut : wy categories : general base_url : "https://{language}.wikivoyage.org/" number_of_results : 5