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.3.tar.gz (15.4 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.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spawn_user_agent-0.0.3.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for spawn_user_agent-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5c11668d3d8a641db5334d4b94293ed788eb7af8f9efe23b4a75a7090e78e85e
MD5 d74fdacad0d33d64a150232d3c81077d
BLAKE2b-256 7f727d231d87b483f60e20a9b68d62b51d584ad40b3c459daa269b6f57c6a4cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spawn_user_agent-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 443439a6646c0755c8a461d227a925b7ced9445a533dab11b77b58f58a0322e4
MD5 757da117b5b39e8e5689b28040d7e79c
BLAKE2b-256 b81aab79ac68c2c9fbf77b6d04da6890e063331b31a9fddf89581aa4bc00e33b

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