--- id: latest-user-agents version: "0.0.5" license: unclear license_treatment: permissive maintenance: dormant --- # latest-user-agents — Get the latest user agent strings for major browsers and OSs License: permissive · Maintenance: dormant · Downloads: 84.4K/mo ## What it is and what it does latest-user-agents is a lightweight wrapper that retrieves current user agent strings for major browsers (Firefox, Chrome, Safari, Edge) across common operating systems (macOS, Windows, Linux). It exposes two main functions: get_latest_user_agents() returns a list of current user agent strings, and get_random_user_agent() picks one at random from that list. The package depends on platformdirs and requests to fetch and cache agent data. It's useful for web scraping, API testing, or any scenario where you need realistic, up-to-date user agent headers. The library is marked Production/Stable and supports Python 3.9 through 3.13, though maintenance is dormant—the last release was over a year and a half ago, so agent strings may lag behind the newest browser versions. Use it for: - Web scraping: rotate realistic user agents to avoid detection and blocking - API testing: simulate requests from different browsers and OS combinations - Load testing: generate varied user agent headers for realistic traffic simulation - Bot development: supply authentic-looking user agents to web automation scripts ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Fetches and provides current user agent strings for major browsers and operating systems, with functions to retrieve the full list or select random agents. Yes, if you need current user agent strings and can tolerate dormant maintenance. The package is simple, has no known vulnerabilities, and carries a permissive MIT license. However, verify that the agent data is fresh enough for your use case—567 days since the last release means browser versions in the list may be outdated. High install friction (two dependencies) is minor for most projects. ## Install pip install latest-user-agents uv add latest-user-agents poetry add latest-user-agents ## Installing latest-user-agents Before you install: High install friction due to two runtime dependencies (platformdirs, requests). Maintenance is dormant—last release was 567 days ago, though the repository remains active with a recent commit on 2025-01-24. No security vulnerabilities reported. License in practice: Licensed under MIT (permissive), so you can use, modify, and distribute freely with minimal restrictions. Quickstart: pip install latest-user-agents from latest_user_agents import get_latest_user_agents, get_random_user_agent agents = get_latest_user_agents() random_agent = get_random_user_agent() Verify before relying: - How frequently user agent data is refreshed and whether it stays current with new browser releases - Whether the package caches fetched agents locally or always queries fresh data - Performance impact of network calls when retrieving user agents ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: high - Maintenance: dormant - Downloads: 84.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags user agent strings, browser user agents, latest user agents, random user agent, user agent generator, web scraping headers, http user agent, web-scraping, user-agents, http-headers [View on SkillFed](https://skillfed.io/packages/latest-user-agents) · [View on PyPI](https://pypi.org/project/latest-user-agents/)