|
@@ -16,7 +16,7 @@
|
16
|
16
|
from lxml import html
|
17
|
17
|
from searx.engines.xpath import extract_text
|
18
|
18
|
from searx.url_utils import urlencode
|
19
|
|
-from searx.utils import match_language
|
|
19
|
+from searx.utils import match_language, gen_useragent
|
20
|
20
|
|
21
|
21
|
# engine dependent config
|
22
|
22
|
categories = ['general']
|
|
@@ -43,6 +43,9 @@ def request(query, params):
|
43
|
43
|
offset=offset)
|
44
|
44
|
|
45
|
45
|
params['url'] = base_url + search_path
|
|
46
|
+
|
|
47
|
+ params['headers']['User-Agent'] = gen_useragent('Windows NT 6.3; WOW64')
|
|
48
|
+
|
46
|
49
|
return params
|
47
|
50
|
|
48
|
51
|
|