mirror of https://github.com/searxng/searxng.git
Compare commits
No commits in common. "b3708e4137cf66c7f2966e811c2fae907c28089a" and "07b7058cb79049a9c8e241045802577c92673a82" have entirely different histories.
b3708e4137
...
07b7058cb7
|
@ -152,16 +152,6 @@ def wikipedia(query, lang):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def yandex(query, _lang):
|
|
||||||
# yandex autocompleter
|
|
||||||
url = "https://suggest.yandex.com/suggest-ff.cgi?{0}"
|
|
||||||
|
|
||||||
resp = loads(get(url.format(urlencode(dict(part=query)))).text)
|
|
||||||
if len(resp) > 1:
|
|
||||||
return resp[1]
|
|
||||||
return []
|
|
||||||
|
|
||||||
|
|
||||||
backends = {
|
backends = {
|
||||||
'dbpedia': dbpedia,
|
'dbpedia': dbpedia,
|
||||||
'duckduckgo': duckduckgo,
|
'duckduckgo': duckduckgo,
|
||||||
|
@ -172,7 +162,6 @@ backends = {
|
||||||
'qwant': qwant,
|
'qwant': qwant,
|
||||||
'wikipedia': wikipedia,
|
'wikipedia': wikipedia,
|
||||||
'brave': brave,
|
'brave': brave,
|
||||||
'yandex': yandex,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ brand:
|
||||||
search:
|
search:
|
||||||
# Filter results. 0: None, 1: Moderate, 2: Strict
|
# Filter results. 0: None, 1: Moderate, 2: Strict
|
||||||
safe_search: 0
|
safe_search: 0
|
||||||
# Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "yandex",
|
# Existing autocomplete backends: "dbpedia", "duckduckgo", "google",
|
||||||
# "seznam", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off
|
# "seznam", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off
|
||||||
# by default.
|
# by default.
|
||||||
autocomplete: ""
|
autocomplete: ""
|
||||||
|
|
Loading…
Reference in New Issue