httpagentparser 1.0.0
Extracts OS Browser etc information from http user agent string
Latest Version: 1.0.5
>>> import httpagentparser
>>> s = "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
>>> print httpagentparser.simple_detect(s)
('Linux', 'Chrome 5.0.307.11')
>>> print httpagentparser.detect(s)
{'os': {'name': 'Linux'},
'browser': {'version': '5.0.307.11', 'name': 'Chrome'}}
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| httpagentparser-1.0.0.tar.gz (md5) | Source | 2011-11-18 | 4KB | 1267 | |
- Author: Shekhar Tiwatne
- Home Page: http://flavors.me/shon
- License: http://www.opensource.org/licenses/mit-license.php
- Package Index Owner: shon
- DOAP record: httpagentparser-1.0.0.xml
