Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the best way to detect mobile browsers?

Posted on 2011-02-15
5
Medium Priority
?
1,341 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 1600 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 400 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…
Suggested Courses

916 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