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

Make ua-parser result accessible #117

Open gma2th-jt opened 2 years ago

gma2th-jt commented 2 years ago

python-user-agents use ua-parser to parse the user agent here

I would like to access the result of ua_parser.user_agent_parser.Parse through python-user-agent lib. It's too bad for me to parse the user agent twice, once with python-user-agent, and once with ua-parser.

What do you think of makingua_dict a property of the UserAgent class? I can summit you a PR.