diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-05 15:10:38 +0100 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-05 15:10:38 +0100 |
| commit | e30f43bd81b3d7a682b3bb65eacd20ddb46b5230 (patch) | |
| tree | 0cd30184ab574b4177ad3f04f9826ba82bfbeda1 /searx/utils.py | |
| parent | 07f83cab224d2ddf1f7fd8b544f2f2d6679c2416 (diff) | |
| parent | 73ab92544a5240bcbe7a1d39ee50ad809125db30 (diff) | |
Merge remote-tracking branch 'asciimoo/master'
Diffstat (limited to 'searx/utils.py')
| -rw-r--r-- | searx/utils.py | 1 |
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)) |