From 15f1d6a80f43be59631d00e2f14615537e2e359e Mon Sep 17 00:00:00 2001
From: LL Productions FR <CrocodileCroco@users.noreply.github.com>
Date: Sun, 16 May 2021 17:33:08 +0200
Subject: [PATCH] [enh] add engine Wikimini (fr.wikimini.org)

Online encyclopedia for children (only language fr), merged from [1]

[1] https://github.com/searx/searx/pull/2819
---
 searx/settings.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/searx/settings.yml b/searx/settings.yml
index 94d9e185a..85d3717ea 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1335,6 +1335,26 @@ engines:
     timeout: 5.0
     disabled: True
 
+    # wikimini: online encyclopedia for children
+    # Tthe fulltext and title parameter is necessary for Wikimini because
+    # sometimes it will not show the results and redirect instead
+  - name: wikimini
+    engine: xpath
+    shortcut: wkmn
+    search_url : https://fr.wikimini.org/w/index.php?search={query}&title=Sp%C3%A9cial%3ASearch&fulltext=Search
+    url_xpath : //li/div[@class="mw-search-result-heading"]/a/@href
+    title_xpath : //li//div[@class="mw-search-result-heading"]/a
+    content_xpath : //li/div[@class="searchresult"]
+    categories : general
+    disabled: True
+    about:
+      website: https://wikimini.org/
+      wikidata_id: Q3568032
+      use_official_api: false
+      require_api_key: false
+      results: HTML
+
+
 # Doku engine lets you access to any Doku wiki instance:
 # A public one or a privete/corporate one.
 #  - name : ubuntuwiki