$npx skillfedfor your agent

random-user-agent

A package to get random user agents based filters provided by user

With conditionsPyPI WWW/HTTPReleased Dec 2018526.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — random_user_agent-1.0.1-py3-none-any.whl
v1.0.1 · released 2018-12-26

Yes, if you need a simple, dependency-free way to rotate user agents and can tolerate a static collection from 2018. The library is stable and permissive, but unsuitable if you need current user agent data or active maintenance. For projects requiring up-to-date agent strings, consider alternatives that maintain fresher datasets.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • However, the package is dormant—last release was 2018-12-26 and last commit 2024-07-07—so expect no active maintenance or updates to the underlying user agent collection.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt in most projects.

last release 2018-12-26 (2788 days) · last repo commit 2024-07-07 · 102 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 526,784 downloads/mo, #6,174 on PyPI

Verify before relying

from random_user_agent.user_agent import UserAgent
from random_user_agent.params import SoftwareName, OperatingSystem

user_agent_rotator = UserAgent(
    software_names=[SoftwareName.CHROME.value],
    operating_systems=[OperatingSystem.WINDOWS.value],
    limit=10
)
user_agents = user_agent_rotator.get_user_agents()
random_agent = user_agent_rotator.get_random_user_agent()
  • Whether the 326,000+ user agent collection is current or reflects agents from 2018 onward only
  • How often the underlying user agent dataset is refreshed, if at all
  • Compatibility with modern Python versions beyond 3.x declaration
Same gist for agents: .md · .json

What it is and what it does

Random User Agent is a Python library that returns random user agent strings selected from a collection of over 326,000 agents. It lets you filter by operating system (Windows, Linux, Mac, Unix), hardware type (mobile, computer, server), software (browser, crawler, analyzer), specific browsers (Chrome, Firefox, Edge, Opera), rendering engine (Blink, Gecko, WebKit), and popularity tier (popular, common, average). You call UserAgent with your filter criteria and either retrieve a full list or a single random agent.

The package has no runtime dependencies and installs cleanly. However, it has been dormant since late 2018—the latest release is from December 2018 and the repository shows minimal recent activity. The user agent collection is unlikely to reflect current browser versions or modern user agent patterns, making it most useful for legacy systems or scenarios where exact currency is not critical.

Use it for

  • Rotate user agents in web scrapers to avoid detection by rotating through realistic browser identifiers
  • Test web applications with a variety of user agent strings to verify browser compatibility and responsive behavior
  • Generate realistic user agents for API clients or bots that need to mimic legitimate browser traffic
  • Simulate requests from specific operating systems or browsers during load testing or quality assurance
  • Populate user agent headers in HTTP clients when building tools that need to appear as real browsers

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a simple, dependency-free way to rotate user agents and can tolerate a static collection from 2018.

The library is stable and permissive, but unsuitable if you need current user agent data or active maintenance. For projects requiring up-to-date agent strings, consider alternatives that maintain fresher datasets.

Install

random-user-agent on PyPI

Before you install

Installation is straightforward with no runtime dependencies. However, the package is dormant—last release was 2018-12-26 and last commit 2024-07-07—so expect no active maintenance or updates to the underlying user agent collection.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt in most projects.

Quickstart

from random_user_agent.user_agent import UserAgent
from random_user_agent.params import SoftwareName, OperatingSystem

user_agent_rotator = UserAgent(
    software_names=[SoftwareName.CHROME.value],
    operating_systems=[OperatingSystem.WINDOWS.value],
    limit=10
)
user_agents = user_agent_rotator.get_user_agents()
random_agent = user_agent_rotator.get_random_user_agent()

Verify before relying

  • Whether the 326,000+ user agent collection is current or reflects agents from 2018 onward only
  • How often the underlying user agent dataset is refreshed, if at all
  • Compatibility with modern Python versions beyond 3.x declaration

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 2,788 days since the last release
Last repo commit
First released
Downloads526,784 / month, #6,174 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: random_user_agent-1.0.1-py3-none-any.whl

Tags

Capabilities
random user agent generatoruser agent rotationbrowser user agent stringsuser agent filteringweb scraping user agentsrotate user agentsuser agent library
Topics
user-agent-rotationweb-scrapingdormant

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “random user agent generator”

  • random-user-agentProvides random user agent strings filtered by operating system,…
  • latest-user-agentsFetches and provides current user agent strings for major browsers…
  • user-agentGenerates random, valid web user agent strings for HTTP headers and…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also fake-useragent · user-agent · latest-user-agents · ua-generator · ua-parser · user-agents · httpagentparser · device-detector · fake-headers · django-user-agents

Further reading