shon / httpagentparser

Python HTTP Agent Parser
http://pypi.python.org/pypi/httpagentparser/
MIT License
222 stars 55 forks source link

Maxthon 4 not recognised #48

Open Kos opened 10 years ago

Kos commented 10 years ago

Found this curiosity in the logs:

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0; MSIE; Maxthon/4.1.3.5000)

Output:

{'browser': {'name': 'Microsoft Internet Explorer'},
 'os': {'name': 'Windows', 'version': '7'},
 'platform': {'name': 'Windows', 'version': '7'}}

I don't know much about Maxthon, but the UA says Trident/7.0 rv:11.0, so it looks like something IE11-powered.

(On related note, I also didn't expect detect() to return something that has ['browser'] but doesn't have ['browser']['version'].)