summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-01-04 00:17:42 +0100
committerGitHub <noreply@github.com>2017-01-04 00:17:42 +0100
commitf81284476cb4815c1f380f808da81ac0cca8b8cf (patch)
tree31f9290f603ffec0fb8878150878d01159222c12
parent02bba2abdcc84f4d0cd0a8466342534f916b528f (diff)
parent7bcdc27a2e2bf7700cd0b1515bcd5e41b40d0bea (diff)
downloadsearxng-f81284476cb4815c1f380f808da81ac0cca8b8cf.tar.gz
searxng-f81284476cb4815c1f380f808da81ac0cca8b8cf.zip
Merge pull request #810 from dalf/standalone
[fix] fix standalone_search.py
-rw-r--r--utils/standalone_search.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/standalone_search.py b/utils/standalone_search.py
index 7e9516f82..cad32eeca 100644
--- a/utils/standalone_search.py
+++ b/utils/standalone_search.py
@@ -13,10 +13,9 @@ request_params = default_request_params()
# Possible params
# request_params['headers']['User-Agent'] = ''
# request_params['category'] = ''
-# request_params['started'] = ''
-
request_params['pageno'] = 1
request_params['language'] = 'en_us'
+request_params['time_range'] = ''
params = google.request(argv[1], request_params)
@@ -32,5 +31,5 @@ else:
request_args['data'] = request_params['data']
resp = req(request_params['url'], **request_args)
-
+resp.search_params = request_params
print(dumps(google.response(resp)))