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

Nokia devices #88

Open dianeroozendaal opened 5 years ago

dianeroozendaal commented 5 years ago

Hi, My nokia 3.1 is detected as a tablet, the user-agent is Mozilla/5.0 (Linux; Android 8.0.0; Nokia 3.1 Build/O00623) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36 Thanks!

jnozsc commented 4 years ago
>>> ua = "Mozilla/5.0 (Linux; Android 8.0.0; Nokia 3.1 Build/O00623) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36"
>>> user_agent = parse(ua)
>>> user_agent.is_tablet
False

should be fixed in latest version