Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

spawn-user-agent

Python 3.9+ License: GPL v3

spawn_user_agent is a library for generating a list of recent user agents (i.e. within the past year). This makes it useful for testing purposes or for web spiders exercising discretion.

So how does this differ from everything else? Well this is a simple & barebones library without any dependencies. Generating user agents shouldn't be a difficult or complex problem, but just about every other library I could find struggles to KISS.

Some reasonable amount of effort will be applied to keep the list of UAs up to date.

Installation

pip install spawn-user-agent

Usage

from spawn_user_agent.user_agent import SpawnUserAgent

# generate a list of firefox UAs
print(SpawnUserAgent.firefox())

# generate a list of chrome UAs
print(SpawnUserAgent.chrome())

# generate a list of safari UAs
print(SpawnUserAgent.safari())

# generate a list of mobile safari UAs
print(SpawnUserAgent.safari_mobile())

# generate a list of all UAs (combination of everything above)
print(SpawnUserAgent.generate_all())

Release files for spawn-user-agent 0.0.4

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

Source distribution (sdist)

Source distribution for spawn-user-agent 0.0.4
File Size Uploaded
spawn_user_agent-0.0.4.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spawn-user-agent 0.0.4
File Interpreter ABI Platform
spawn_user_agent-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size:31.2 kB

Release files / spawn_user_agent-0.0.4.tar.gz

Download URL spawn_user_agent-0.0.4.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f33d27d67d58a05e60983991f6dcd7f8da453735e68795392a52d59e315625d0
BLAKE2b-256 checksum
How to use checksums
d8ae70ccd6e9d0c56f6487dda109e8d62b04436b9cf13eefd8d8980db44eb22e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / spawn_user_agent-0.0.4-py3-none-any.whl

Download URL spawn_user_agent-0.0.4-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
698058bf0ecc317f52822177ae2d397e191b5515d21490c2b5c6e733652803c7
BLAKE2b-256 checksum
How to use checksums
dada2224e22241cb75b92fbb94b3ded782d326c483e3329a3adc9b6f60588559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

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