diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2023-08-23 23:13:46 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-08-27 17:25:26 +0200 |
| commit | b0d2cd5ca9d2ca167551f0a84cd7121453ee51b5 (patch) | |
| tree | 96da0d6732d4b6e8596d73d4865052046f8265fe | |
| parent | df71c24b2043195a94f3098f9b7371c6d6fb2dce (diff) | |
[doc] add documentation of Mwmbl engine & autocompleter
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
| -rw-r--r-- | docs/dev/engines/online/mwmbl.rst | 27 | ||||
| -rw-r--r-- | searx/autocomplete.py | 2 | ||||
| -rw-r--r-- | searx/engines/mwmbl.py | 13 |
3 files changed, 41 insertions, 1 deletions
diff --git a/docs/dev/engines/online/mwmbl.rst b/docs/dev/engines/online/mwmbl.rst new file mode 100644 index 000000000..8eac7d7c5 --- /dev/null +++ b/docs/dev/engines/online/mwmbl.rst @@ -0,0 +1,27 @@ +.. _Mwmbl engine: + +============ +Mwmbl Engine +============ + +.. contents:: + :depth: 2 + :local: + :backlinks: entry + + +.. _mwmbl web engine: + +Mwmbl WEB +========= + +.. automodule:: searx.engines.mwmbl + :members: + + +.. _mwmbl autocomplete: + +Mwmbl Autocomplete +================== + +.. autofunction:: searx.autocomplete.mwmbl diff --git a/searx/autocomplete.py b/searx/autocomplete.py index 4f674dca7..58655e26f 100644 --- a/searx/autocomplete.py +++ b/searx/autocomplete.py @@ -111,6 +111,8 @@ def google_complete(query, sxng_locale): def mwmbl(query, _lang): + """Autocomplete from Mwmbl_.""" + # mwmbl autocompleter url = 'https://api.mwmbl.org/search/complete?{query}' diff --git a/searx/engines/mwmbl.py b/searx/engines/mwmbl.py index 1253d0be4..f4905401d 100644 --- a/searx/engines/mwmbl.py +++ b/searx/engines/mwmbl.py @@ -1,6 +1,17 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint -"""mwmbl (general) +"""Mwmbl_ is a non-profit, ad-free, free-libre and free-lunch search engine with +a focus on useability and speed. + +.. hint:: + + At the moment it is little more than an idea together with a proof of concept + implementation of the web front-end and search technology on a small index. + Mwmbl_ does not support regions, languages, safe-search or time range. + search. + +.. _Mwmbl: https://github.com/mwmbl/mwmbl + """ from urllib.parse import urlencode |