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.8.5.tar.gz
(3.2 kB
view details)
File details
Details for the file httpagentparser-0.8.5.tar.gz
.
File metadata
- Download URL: httpagentparser-0.8.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad73a6487f35c0f7852f92c127e5124d875f7b698910547202a49ab1932e6d02 |
|
MD5 | 751a17e5f88cb5689f867a17edd4c73d |
|
BLAKE2b-256 | d0de1ba8beee4529189e30a2efad55e740df5f1a9a1177d0871d8a4e24dd1405 |