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-1.0.2.tar.gz
(4.5 kB
view details)
File details
Details for the file httpagentparser-1.0.2.tar.gz
.
File metadata
- Download URL: httpagentparser-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c6345c9d73d4f0e87872770acad4e55415f637b0a93f5fc1f28c76faaf500f3 |
|
MD5 | a2f1d0387bd4ced55a876d0e78d76fd9 |
|
BLAKE2b-256 | 428d84c389faaf0c9cb87df1ffc2be50b5dc274f6efbf7924c10378af0f2bbd0 |