Skip to main content

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


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.8.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file httpagentparser-0.9.8.tar.gz.

File metadata

File hashes

Hashes for httpagentparser-0.9.8.tar.gz
Algorithm Hash digest
SHA256 d3ba36bc3c06f8292cd356fdb796063295eeef4c4c032cdef832a1bfa5441536
MD5 89b6dadf981800a4d053a1ba6728ec3b
BLAKE2b-256 1ce054ad9db7e84bcde1d0f63e745deab8b45d06dc8eaf571883829f521b0110

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page