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.44k stars 197 forks source link

Nexus 5 is identified as tablet #52

Open kerbelp opened 8 years ago

kerbelp commented 8 years ago

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 5.1; Google Nexus 5 - 5.1.0 - API 22 - 1080x1920 Build/LMY47D)' user_agent = parse(ua)

result: user_agent.is_tablet will be True and and user_agent.is_mobile will be False.

Thanks.