mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] google-news: query uses locale without country tag
Wthout country-region tag google will redirect to correct the contry tag [1]:
    SEARX_DEBUG=1 searx-checker -v "google news"
    ...
    https://news.google.com:443 "GET /search?q=computer&hl=en...      HTTP/1.1" 302 0
    https://news.google.com:443 "GET /search?q=computer&hl=en-US&.... HTTP/1.1" 200 None
    ...
[1] https://github.com/searx/searx/pull/2483#issuecomment-765600849
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									baec54c492
								
							
						
					
					
						commit
						5f92dfcdbe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -85,7 +85,7 @@ def request(query, params): | |||
| 
 | ||||
|     query_url = 'https://'+ subdomain + '/search' + "?" + urlencode({ | ||||
|         'q': query, | ||||
|         'hl': language, | ||||
|         'hl': lang_country, | ||||
|         'lr': "lang_" + language, | ||||
|         'ie': "utf8", | ||||
|         'oe': "utf8", | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser