.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.engines.mwmbl Namespace Reference

Functions

 request (query, params)
 
 response (resp)
 

Variables

dict about
 
bool paging = False
 
list categories = ['general']
 
str api_url = "https://api.mwmbl.org/api/v1"
 

Detailed Description

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

Function Documentation

◆ request()

searx.engines.mwmbl.request ( query,
params )

Definition at line 30 of file mwmbl.py.

30def request(query, params):
31 params['url'] = f"{api_url}/search/?{urlencode({'s': query})}"
32 return params
33
34

◆ response()

searx.engines.mwmbl.response ( resp)

Definition at line 35 of file mwmbl.py.

35def response(resp):
36 results = []
37
38 json_results = resp.json()
39
40 for result in json_results:
41 title_parts = [title['value'] for title in result['title']]
42 results.append(
43 {
44 'url': result['url'],
45 'title': ''.join(title_parts),
46 'content': result['extract'][0]['value'],
47 }
48 )
49
50 return results

Variable Documentation

◆ about

dict searx.engines.mwmbl.about
Initial value:
1= {
2 "website": 'https://github.com/mwmbl/mwmbl',
3 "use_official_api": True,
4 "require_api_key": False,
5 "results": 'JSON',
6}

Definition at line 18 of file mwmbl.py.

◆ api_url

str searx.engines.mwmbl.api_url = "https://api.mwmbl.org/api/v1"

Definition at line 27 of file mwmbl.py.

◆ categories

list searx.engines.mwmbl.categories = ['general']

Definition at line 25 of file mwmbl.py.

◆ paging

bool searx.engines.mwmbl.paging = False

Definition at line 24 of file mwmbl.py.