Extracts OS Browser etc information from http user agent string
Project description
>>> 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'}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpagentparser-0.9.2.tar.gz
(3.9 kB
view details)
File details
Details for the file httpagentparser-0.9.2.tar.gz
.
File metadata
- Download URL: httpagentparser-0.9.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2344c918a0ae2f2d82d3e820c324ef9e100624eff676b8fa28e719720c9589fc |
|
MD5 | e3f3e992eea11cd2744efce6eca4d729 |
|
BLAKE2b-256 | 1e363e785dbc7902faaf8be902298c2f2dfe1eb8c53e6192c159b1197840e19f |