selwin / python-user-agents

A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
MIT License
1.43k stars 196 forks source link

cant detect the brand called oneplus #91

Open wei294597950 opened 5 years ago

wei294597950 commented 5 years ago

oneplus is a wonderful mobile brand ; it should be added in your code

jnozsc commented 4 years ago
>>> from user_agents import parse
>>> user_agent = parse(ua)
>>> user_agent
<user_agents.parsers.UserAgent object at 0x10d63fad0>
>>> user_agent.device.brand
'OnePlus'

should be fixed in latest version