SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[enh] Add autocompleter from Brave
Allenb8c98c4c0d71
diff --git a/searx/autocomplete.py b/searx/autocomplete.pyindex b8d272c32..6c69ff7c5 100644--- a/searx/autocomplete.py+++ b/searx/autocomplete.py@@ -36,6 +36,20 @@ def get(*args, **kwargs):return http_get(*args, **kwargs)+def brave(query, lang):+ # brave search autocompleter+ url = 'https://search.brave.com/api/suggest?{query}'+ resp = get(url.format(query=urlencode({'q': query})))++ results = []++ if resp.ok:+ data = loads(resp.text)+ for item in data[1]:+ results.append(item)+ return results++def dbpedia(query, lang):# dbpedia autocompleter, no HTTPSautocomplete_url = 'https://lookup.dbpedia.org/api/search.asmx/KeywordSearch?'@@ -128,6 +142,7 @@ backends = {'swisscows': swisscows,'qwant': qwant,'wikipedia': wikipedia,+ 'brave': brave,}