summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-05 15:10:38 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-05 15:10:38 +0100
commite30f43bd81b3d7a682b3bb65eacd20ddb46b5230 (patch)
tree0cd30184ab574b4177ad3f04f9826ba82bfbeda1 /searx/utils.py
parent07f83cab224d2ddf1f7fd8b544f2f2d6679c2416 (diff)
parent73ab92544a5240bcbe7a1d39ee50ad809125db30 (diff)
Merge remote-tracking branch 'asciimoo/master'
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/utils.py b/searx/utils.py
index b99a945df..1e48e37ee 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -10,6 +10,7 @@ ua_versions = ('26.0', '27.0', '28.0')
ua_os = ('Windows NT 6.3; WOW64', 'X11; Linux x86_64; rv:26.0')
ua = "Mozilla/5.0 ({os}) Gecko/20100101 Firefox/{version}"
+
def gen_useragent():
# TODO
return ua.format(os=choice(ua_os), version=choice(ua_versions))