Solved

What is the best way to detect mobile browsers?

Posted on 2011-02-15
5
1,332 Views
Last Modified: 2012-05-11
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
Comment
Question by:jamie_lynn
  • 2
  • 2
5 Comments
 
LVL 25

Expert Comment

by:RobMobility
ID: 34895143
have a look at this:

http://detectmobilebrowsers.mobi/

Regadrs,


RobMobility.
0
 

Author Comment

by:jamie_lynn
ID: 34895239
Hi Rob,

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

Thanks
Jamie
0
 
LVL 8

Accepted Solution

by:
rationalboss earned 400 total points
ID: 34896424
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
 
LVL 25

Assisted Solution

by:RobMobility
RobMobility earned 100 total points
ID: 34896493
0
 

Author Closing Comment

by:jamie_lynn
ID: 34904784
Thanks for all the libraries!
I decided to go with
http://code.google.com/p/handset-detection-python-api-kit/
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now