Solved

What is the best way to detect mobile browsers?

Posted on 2011-02-15
5
1,337 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Less strange, but still introduction This introduction was added (1st August, 2011) to reflect some reactions.  Firstly, the term basics in the title of the article...  As any other word, it is a symbol with meaning attached to the word by some a…
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 if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

830 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