diff options
| author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-05-20 18:10:22 -0500 |
|---|---|---|
| committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-05-20 18:13:32 -0500 |
| commit | 75b276f408487db8fecc6eab7abd6126323a7efe (patch) | |
| tree | 17c72295e9926625a5f8a338baf77296847434b5 /searx/engines | |
| parent | b25dccd1ae818ed7fe27b3f6dfb80a755599ab12 (diff) | |
fix bing "garbage" results (issue #1275)
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/bing.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py index c6d41782b..2da40619d 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -16,7 +16,7 @@ from lxml import html from searx.engines.xpath import extract_text from searx.url_utils import urlencode -from searx.utils import match_language +from searx.utils import match_language, gen_useragent # engine dependent config categories = ['general'] @@ -43,6 +43,9 @@ def request(query, params): offset=offset) params['url'] = base_url + search_path + + params['headers']['User-Agent'] = gen_useragent('Windows NT 6.3; WOW64') + return params |