Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
cbe3c8be85
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1
    2
      searx/engines/bing_news.py

+ 1
- 2
searx/engines/bing_news.py Parādīt failu

39
         query=urlencode({'q': query, 'setmkt': language}),
39
         query=urlencode({'q': query, 'setmkt': language}),
40
         offset=offset)
40
         offset=offset)
41
 
41
 
42
-    params['cookies']['SRCHHPGUSR'] = \
43
-        'NEWWND=0&NRSLT=-1&SRCHLANG=' + language.split('-')[0]
42
+    params['cookies']['_FP'] = "ui=en-US"
44
 
43
 
45
     params['url'] = base_url + search_path
44
     params['url'] = base_url + search_path
46
     return params
45
     return params