Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1342
  • Last Modified:

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
0
jamie_lynn
Asked:
jamie_lynn
  • 2
  • 2
2 Solutions
 
RobMobilityCommented:
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
 
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
 
jamie_lynnAuthor Commented:
Thanks for all the libraries!
I decided to go with
http://code.google.com/p/handset-detection-python-api-kit/
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now