logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: cbe3c8be854896b11a99ace4b98a689fe9d1e1c3
parent 699fe60e5072eeffebfb2f3b9b85cefe6dd1b7bc
Author: Cqoicebordel <Cqoicebordel@users.noreply.github.com>
Date:   Thu, 22 Jan 2015 22:46:34 +0100

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:

Msearx/engines/bing_news.py3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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