Skip to main content

provides random useragent string taken from useragents.me

methods:

get_useragent(env='desktop')
    returns a useragent string for the specified environment, sampled according to the probability occurring in the wild

get_useragents(env='all')
    returns a dict:list:dict of useragents (the keys are the environments)
    the returned lists contain dicts with keys share (percentage of all agents), os + browser, and useragent. some dicts also have a device key.

    if env='desktiop' (or mobile, linux, android, iphone, tablet) is specified, a list:dict fir the specified environment is returned

example usage:

from randomuseragent import ua
agent=ua()
agent.get_user_agent()
# 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.10 Safari/605.1.1'

Metadata

Release files for randomagent 0.0.1

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

Source distribution (sdist)

Source distribution for randomagent 0.0.1
File Size Uploaded Provenance Actions
randomagent-0.0.1.tar.gz 3.4 kB Without provenance Details for randomagent-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for randomagent 0.0.1
File Interpreter ABI Platform Actions
randomagent-0.0.1-py3-none-any.whl Python 3 none any Details for randomagent-0.0.1-py3-none-any.whl

Total release size: 6.8 kB

Release files / randomagent-0.0.1.tar.gz

Download URL randomagent-0.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05ee28b7d8a607c3ddffb796ab79848820008a880b20a4f3cd377b44566fc76b
BLAKE2b-256 checksum
How to use checksums
1f29db843a119261663b6a563d7bb84ff03e7836dd89aa78ebff8f2354cb4c77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.13

Release files / randomagent-0.0.1-py3-none-any.whl

Download URL randomagent-0.0.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adbd213ac8ae89ac0f486c4c37715b3524d62303b9f6837bf0e7444e9cc75491
BLAKE2b-256 checksum
How to use checksums
8c2cd4b59c03d763f9195f0786bce825a5c420e9395d1fa1be1666e1ece8bb08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.13

Security for randomagent 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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