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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for httpagentparser-1.0.3.tar.gz
Algorithm Hash digest
SHA256 58e8042f65126185996340c4b5f0f58c728fda3656394fa941774e18afa7be4c
MD5 e0e293bd46eefb552671d2d83b82c2db
BLAKE2b-256 3a0fbac9e8be3ae69a3cc6a59fb3be8966a14d9c384a3717e54f81aa2ae48ca0

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