What is the best way to detect mobile browsers?

Hi
What is the best way to detect mobile browsers?
I know that you have to parse useragent, but how can i cover majority of the mbile browsers?
I was looking into WURFL, and it looks pretty extensive, but a bit overkill for me.
Is there a simpler script that covers the newer mmobile phones like iphone, android, blackberry, wp7, webOS?

Thanks
Jamie
jamie_lynnAsked:
Who is Participating?
 
rationalbossCommented:
If you are using django, try http://code.google.com/p/minidetector/

This is a long list of known mobile user-agents:
http://www.zytrax.com/tech/web/mobile_ids.html

This is what I recommend: http://code.google.com/p/handset-detection-python-api-kit/
0
 
Rob KnightConsultantCommented:
have a look at this:

http://detectmobilebrowsers.mobi/

Regadrs,


RobMobility.
0
 
jamie_lynnAuthor Commented:
Hi Rob,

This script is in PHP. I am using Python.
Is there a python version available?

Thanks
Jamie
0
 
jamie_lynnAuthor Commented:
Thanks for all the libraries!
I decided to go with
http://code.google.com/p/handset-detection-python-api-kit/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.