0

I am looking for a user-agent parser in python that if passed a user agent such as the below, it will provide OS, browser type but most import the device type e.g. desktop/laptop versus tablet or mobile and if possible what kind..such as android, iPhone, nokia etc.

Is there such a parser or python libary before I go off and build by own?

user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20100101 Firefox/16.0,gzip(gfe)"
1

1 Answer 1

1

The top answer to Parsing HTTP User-Agent string has a python parser. If it doesn't do exactly what you want it should be easy enough to modify.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.