Skip to main content

Super simple user agent generator

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spawn_user_agent-0.0.4.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spawn_user_agent-0.0.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file spawn_user_agent-0.0.4.tar.gz.

File metadata

  • Download URL: spawn_user_agent-0.0.4.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for spawn_user_agent-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f33d27d67d58a05e60983991f6dcd7f8da453735e68795392a52d59e315625d0
MD5 2f56dc85f2037ac55fe8fe176aa49034
BLAKE2b-256 d8ae70ccd6e9d0c56f6487dda109e8d62b04436b9cf13eefd8d8980db44eb22e

See more details on using hashes here.

File details

Details for the file spawn_user_agent-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: spawn_user_agent-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for spawn_user_agent-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 698058bf0ecc317f52822177ae2d397e191b5515d21490c2b5c6e733652803c7
MD5 d0995795c73e1fce603308be054df2bb
BLAKE2b-256 dada2224e22241cb75b92fbb94b3ded782d326c483e3329a3adc9b6f60588559

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page