mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
fix bing "garbage" results (issue #1275)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user