A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
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.
python-user-agents
useua-parser
to parse the user agent hereI would like to access the result of
ua_parser.user_agent_parser.Parse
throughpython-user-agent
lib. It's too bad for me to parse the user agent twice, once withpython-user-agent
, and once withua-parser
.What do you think of making
ua_dict
a property of theUserAgent
class? I can summit you a PR.