summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-09-22 13:59:27 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-22 18:59:51 +0200
commit2dbc0de0cd000459ebfdb3d015be8684e737e95c (patch)
treef0087cd5dcf9c349d5a23ebb9bccea57bd875878 /utils
parent21dbc7e852a5c48097c0067e78f0600972e54823 (diff)
downloadsearxng-2dbc0de0cd000459ebfdb3d015be8684e737e95c.tar.gz
searxng-2dbc0de0cd000459ebfdb3d015be8684e737e95c.zip
[mod] add searx/webadapter.py
* move searx.search.get_search_query_from_webapp to searx.webadapter * move searx.query.SearchQuery to searx.search
Diffstat (limited to 'utils')
-rwxr-xr-xutils/standalone_searx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/standalone_searx.py b/utils/standalone_searx.py
index d43b474d7..2ca3fea56 100755
--- a/utils/standalone_searx.py
+++ b/utils/standalone_searx.py
@@ -31,6 +31,7 @@ import searx.query
import searx.search
import searx.engines
import searx.preferences
+import searx.webadapter
import argparse
searx.engines.initialize_engines(settings['engines'])
@@ -64,7 +65,7 @@ form = {
preferences = searx.preferences.Preferences(['oscar'], searx.engines.categories.keys(), searx.engines.engines, [])
preferences.key_value_settings['safesearch'].parse(args.safesearch)
-search_query, raw_text_query = searx.search.get_search_query_from_webapp(preferences, form)
+search_query, raw_text_query = searx.webadapter.get_search_query_from_webapp(preferences, form)
search = searx.search.Search(search_query)
result_container = search.search()