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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for httpagentparser-0.8.2.tar.gz
Algorithm Hash digest
SHA256 f9333065fc5d3fb218c5e6058ed4da777b2443129aa53c9fc906b964a84b42bf
MD5 b89342670a333a8ec2abca82b2307383
BLAKE2b-256 d568141b1a453cc41a86acbf90d5a3676a7e8556c36af5ae9f11d3cc1bee7d9f

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