I have trouble using versions 0.2 and newer to detect User Agents - they are detected as "unknown".
For example, if I have a User Agent string:
Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C; .NET4.0E; TmstmpExt)
Running a simple parse against that string:
from uasparser2 import UASParser
p = UASParser(cache_dir='/tmp', cache_ttl=3600*24*7, mem_cache_size=1000)
p.parse('Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C; .NET4.0E; TmstmpExt)')
will result in unknown User Agent in version 0.2 and newer:
I have trouble using versions 0.2 and newer to detect User Agents - they are detected as "unknown".
For example, if I have a User Agent string:
Running a simple parse against that string:
will result in unknown User Agent in version 0.2 and newer:
Expected result would be, as it is with version 0.1.1:
I'm using Python 2.7.3 on Debian 7.6, and have the following Python packages installed (
uasparser2
not listed):I must be missing something really simple, right?