From cbe3c8be854896b11a99ace4b98a689fe9d1e1c3 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Thu, 22 Jan 2015 22:46:34 +0100 Subject: [PATCH] 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 --- searx/engines/bing_news.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index 3dda04cbb..789a23b89 100644 --- a/searx/engines/bing_news.py +++ b/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