Super simple user agent generator
Project description
spawn-user-agent
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spawn_user_agent-0.0.2.tar.gz
.
File metadata
- Download URL: spawn_user_agent-0.0.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b9ab105336200dcd0c3c281fc9dcc0a51f599d24acd23fe3f13039697cdaa37 |
|
MD5 | 70908212edccc064ac8395b034300529 |
|
BLAKE2b-256 | 0495da0a5f7fd3c4ab9816ed46de64d62649742a7064c0da98bd3deb19d762d3 |
File details
Details for the file spawn_user_agent-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: spawn_user_agent-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2923a43c1f38a4dafcc9557b9304a4859c62fc15d26a1816591152cdcd10f5a |
|
MD5 | 384fd45a24b55d60997c24227eed1292 |
|
BLAKE2b-256 | 1247047fdbe6bcd3c1a2a6104f0f485963cb4e0cc022fd10fca26b5a75fa8070 |