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.7.tar.gz
(4.2 kB
view details)
File details
Details for the file httpagentparser-0.9.7.tar.gz
.
File metadata
- Download URL: httpagentparser-0.9.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339471af1ace154170d70f5ac6cccf94ccb70944416443d07ed2a33d03b89f7d |
|
MD5 | 3b0e4006cfcbba2d39d54b60621e58d0 |
|
BLAKE2b-256 | a9e704a4cf6fa3d489513f7a3929c6efb79783519302ae0813ee4c1df8f00367 |