Просмотр исходного кода

Merge pull request #810 from dalf/standalone

[fix] fix standalone_search.py
Adam Tauber 8 лет назад
Родитель
Сommit
f81284476c
1 измененных файлов: 2 добавлений и 3 удалений
  1. 2
    3
      utils/standalone_search.py

+ 2
- 3
utils/standalone_search.py Просмотреть файл

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