Browse Source

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

Cqoicebordel 10 years ago
parent
commit
cbe3c8be85
1 changed files with 1 additions and 2 deletions
  1. 1 2
      searx/engines/bing_news.py

+ 1 - 2
searx/engines/bing_news.py

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