|
@@ -15,6 +15,7 @@ from cgi import escape
|
15
|
15
|
from urllib import urlencode
|
16
|
16
|
from urlparse import urlparse
|
17
|
17
|
from datetime import datetime
|
|
18
|
+from searx.utils import searx_useragent
|
18
|
19
|
|
19
|
20
|
# engine dependent config
|
20
|
21
|
categories = ['general', 'images', 'news', 'social media']
|
|
@@ -30,6 +31,9 @@ def request(query, params):
|
30
|
31
|
'limit': page_size})
|
31
|
32
|
params['url'] = search_url.format(query=query)
|
32
|
33
|
|
|
34
|
+ # using searx User-Agent
|
|
35
|
+ params['headers']['User-Agent'] = searx_useragent()
|
|
36
|
+
|
33
|
37
|
return params
|
34
|
38
|
|
35
|
39
|
|