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

目前的解析是大小写敏感的,能否改进成大小写不敏感的? #128

Open wangyouyuan opened 6 months ago

wangyouyuan commented 6 months ago

目前的解析是大小写敏感的,能否改进成大小写不敏感的? 例如: mozilla/5.0 (windows nt 10.0; wow64) applewebkit/537.36 (khtml, like gecko) chrome/80.0.3987.87 safari/537.36 se 2.x metasr 1.0 能识别为:PC / Windows 10 / Sogou Explorer 1.0 而转换成小写后 mozilla/5.0 (windows nt 10.0; wow64) applewebkit/537.36 (khtml, like gecko) chrome/80.0.3987.87 safari/537.36 se 2.x metasr 1.0 只能识别为 other