python-user-agents
python-user-agents copied to clipboard
A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
Hi there. There's currently some problems with parsing Firefox OS ua strings: Firefox OS Mobile: ``` bash >>> ua_string = 'Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0' >>> b = parse(ua_string) >>>...
Hi there, A few issues with Firefox for Android user agents: ``` bash >>> ua_string = 'Mozilla/5.0 (Android; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0' >>> b = parse(ua_string) >>> b.browser Browser(family=u'Firefox Mobile',...
I think there is an issue with detecting Nexus 5/6 as mobile devices: example: > > > from user_agents import parse > > > ua = 'Dalvik/2.1.0 (Linux; U; Android...
Hi, Thanks for this great package, I have a suggestion that I think improves its usages. In case of using it as middleware it'd be great if you could make...
Dumping the object to JSON could be great. As far as i know namedtuples are not serializeable so i use `jsno.dumps(ua.browser.__dict__)`. Plus, Exposing the `ua_parser` parsed dict as a property...
I found some mobile Android devices' brand were incorrectly recognized as "Generic_Android", so I tried to modify regexes.yaml. But when I re-imported ua parse, it didn't work. For example, the...
The following gets identified as "Safari" without a version number, but given the `X11` in the string, I have my doubts: ``` Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko)...
Hi, here is the user agent if you need it: `Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; GT-S6310 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 [FB_IAB/FB4A;FBAV/29.0.0.23.13;]`
I found a bot that is not currently in the bot database. It has the signature: `Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1; 360Spider(compatible; HaosouSpider; http://www.haosou.com/help/help_3_2.html)`
Should `check_http/v2.0.3 (nagios-plugins 2.0.3)` be considered a bot?