Change the cookie in bing_news to use the english interface

But still uses the language to set the market, and so provide relevant results to the language.
Fix #198
This commit is contained in:
Cqoicebordel 2015-01-22 22:46:34 +01:00
parent 699fe60e50
commit cbe3c8be85

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