summaryrefslogtreecommitdiff
path: root/searx/engines/bing.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2014-01-05 13:58:17 +0100
committerDalf <alex@al-f.net>2014-01-05 13:58:17 +0100
commitbf56ec4fb1199ab46feeacb8a045d28b287baf47 (patch)
tree072296037bb52f8deae26e2f64b338fa8b50bd7c /searx/engines/bing.py
parent49c85fce51c2b8431013d9269999eac5a6a9c038 (diff)
downloadsearxng-bf56ec4fb1199ab46feeacb8a045d28b287baf47.tar.gz
searxng-bf56ec4fb1199ab46feeacb8a045d28b287baf47.zip
[mod] bing and duckduckgo engines : add / rename locale parameter
Diffstat (limited to 'searx/engines/bing.py')
-rw-r--r--searx/engines/bing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py
index 1002a29c6..6b0bf5a3f 100644
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -4,11 +4,11 @@ from cgi import escape
base_url = 'http://www.bing.com/'
search_string = 'search?{query}'
-language = 'en-us' # see http://msdn.microsoft.com/en-us/library/dd251064.aspx
+locale = 'en-US' # see http://msdn.microsoft.com/en-us/library/dd251064.aspx
def request(query, params):
- search_path = search_string.format(query=urlencode({'q': query, 'setmkt': language}))
+ search_path = search_string.format(query=urlencode({'q': query, 'setmkt': locale}))
#if params['category'] == 'images':
# params['url'] = base_url + 'images/' + search_path
params['url'] = base_url + search_path