1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-06 05:10:11 +01:00

Merge pull request #200 from Cqoicebordel/bing-date

Change the cookie in bing_news to use the english interface
This commit is contained in:
Adam Tauber 2015-01-23 11:50:51 +01:00
commit e7d90b8e86

View File

@ -39,8 +39,7 @@ def request(query, params):
query=urlencode({'q': query, 'setmkt': language}), query=urlencode({'q': query, 'setmkt': language}),
offset=offset) offset=offset)
params['cookies']['SRCHHPGUSR'] = \ params['cookies']['_FP'] = "ui=en-US"
'NEWWND=0&NRSLT=-1&SRCHLANG=' + language.split('-')[0]
params['url'] = base_url + search_path params['url'] = base_url + search_path
return params return params