mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	Merge pull request #810 from dalf/standalone
[fix] fix standalone_search.py
This commit is contained in:
		
						commit
						f81284476c
					
				@ -13,10 +13,9 @@ request_params = default_request_params()
 | 
				
			|||||||
# Possible params
 | 
					# Possible params
 | 
				
			||||||
# request_params['headers']['User-Agent'] = ''
 | 
					# request_params['headers']['User-Agent'] = ''
 | 
				
			||||||
# request_params['category'] = ''
 | 
					# request_params['category'] = ''
 | 
				
			||||||
# request_params['started'] = ''
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
request_params['pageno'] = 1
 | 
					request_params['pageno'] = 1
 | 
				
			||||||
request_params['language'] = 'en_us'
 | 
					request_params['language'] = 'en_us'
 | 
				
			||||||
 | 
					request_params['time_range'] = ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
params = google.request(argv[1], request_params)
 | 
					params = google.request(argv[1], request_params)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -32,5 +31,5 @@ else:
 | 
				
			|||||||
    request_args['data'] = request_params['data']
 | 
					    request_args['data'] = request_params['data']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
resp = req(request_params['url'], **request_args)
 | 
					resp = req(request_params['url'], **request_args)
 | 
				
			||||||
 | 
					resp.search_params = request_params
 | 
				
			||||||
print(dumps(google.response(resp)))
 | 
					print(dumps(google.response(resp)))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user