Skip to main content

A lightwight python wrapper for browser-info.net to retrieve UA strings

Build Status Downloads Documentation Status

What does browserinfo do?

It allows you to retrieve user agent strings, sorted by popularity or most recent.

Usage example

>>> import browserinfo
>>> browserinfo.recent(1)
['Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36\n']
>>> browserinfo.popular(1)
['Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)']

Installation

Use pip:

pip install -U browserinfo

Building doc

From the root of the directory run:

sphinx-apidoc -o docs/ browserinfo -f && cd docs && make html && cd ..

Building Dist Package

To build a distributable package run:

python setup.py sdist

Metadata

Release files for browserinfo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for browserinfo 0.2.0
File Size Uploaded
browserinfo-0.2.0.tar.gz 3.0 kB Details

Release files / browserinfo-0.2.0.tar.gz

Download URL browserinfo-0.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
31c8dc625f602a928698fd0aa9c560dc7fed9c5a8e1f4cb7ee68da81c4266638
BLAKE2b-256 checksum
How to use checksums
3b40bcf35ec0ae3caa8634d843fcafa50c53fb2d380851e5306a19fc2e8aa072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page