diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-23 11:50:51 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-23 11:50:51 +0100 |
| commit | e7d90b8e86a30db41b040ccf608a16be7d75a8bc (patch) | |
| tree | 035032934001b66f59e926028e820404001c5ac6 /searx | |
| parent | 833ac042324ce7ea733bc980ed746d93a1abdc4e (diff) | |
| parent | cbe3c8be854896b11a99ace4b98a689fe9d1e1c3 (diff) | |
Merge pull request #200 from Cqoicebordel/bing-date
Change the cookie in bing_news to use the english interface
Diffstat (limited to 'searx')
| -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 |