浏览代码

Merge pull request #810 from dalf/standalone

[fix] fix standalone_search.py
Adam Tauber 8 年前
父节点
当前提交
f81284476c
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      utils/standalone_search.py

+ 2
- 3
utils/standalone_search.py 查看文件

@@ -13,10 +13,9 @@ request_params = default_request_params()
13 13
 # Possible params
14 14
 # request_params['headers']['User-Agent'] = ''
15 15
 # request_params['category'] = ''
16
-# request_params['started'] = ''
17
-
18 16
 request_params['pageno'] = 1
19 17
 request_params['language'] = 'en_us'
18
+request_params['time_range'] = ''
20 19
 
21 20
 params = google.request(argv[1], request_params)
22 21
 
@@ -32,5 +31,5 @@ else:
32 31
     request_args['data'] = request_params['data']
33 32
 
34 33
 resp = req(request_params['url'], **request_args)
35
-
34
+resp.search_params = request_params
36 35
 print(dumps(google.response(resp)))