From 75b276f408487db8fecc6eab7abd6126323a7efe Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Sun, 20 May 2018 18:10:22 -0500 Subject: fix bing "garbage" results (issue #1275) --- searx/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/utils.py') diff --git a/searx/utils.py b/searx/utils.py index 77c392909..eccbaaf19 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -57,9 +57,9 @@ blocked_tags = ('script', 'style') -def gen_useragent(): +def gen_useragent(os=None): # TODO - return ua.format(os=choice(ua_os), version=choice(ua_versions)) + return ua.format(os=os or choice(ua_os), version=choice(ua_versions)) def searx_useragent(): -- cgit v1.2.3-54-g00ecf