diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-22 22:46:34 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-22 22:46:34 +0100 |
commit | cbe3c8be854896b11a99ace4b98a689fe9d1e1c3 (patch) | |
tree | 48b80386fb708520a04105d2ae6234cdae7d81bf /searx/engines/bing_news.py | |
parent | 699fe60e5072eeffebfb2f3b9b85cefe6dd1b7bc (diff) | |
download | searxng-cbe3c8be854896b11a99ace4b98a689fe9d1e1c3.tar.gz searxng-cbe3c8be854896b11a99ace4b98a689fe9d1e1c3.zip |
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
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r-- | searx/engines/bing_news.py | 3 |
1 files changed, 1 insertions, 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 |