Random User-Agent string generator with embedded browser templates
Project description
useragentgen
Random User-Agent string generator for Chrome, Firefox, Safari, Edge, and Opera. All browser templates are embedded inside the package — no external files needed after install.
Installation
pip install useragentgen
Quick start
import useragentgen
# Single UA, random browser
useragentgen.generate()
# Single UA, specific browser
useragentgen.generate("chrome")
useragentgen.generate("firefox")
useragentgen.generate("safari")
useragentgen.generate("edge")
useragentgen.generate("opera")
# Batch generation
useragentgen.generate_many(10) # 10 random-browser UAs
useragentgen.generate_many(5, "chrome") # 5 Chrome UAs
Reproducible output with a seed:
import useragentgen
useragentgen.init(42)
print(useragentgen.generate("chrome")) # same result every run
Supported browsers
| Key | Covers |
|---|---|
chrome |
Windows, macOS, Linux, Android |
firefox |
All platforms |
safari |
macOS, iOS, Windows |
edge |
Windows, macOS, Linux, Android |
opera |
Windows, macOS, Linux |
License
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
useragentgen-1.0.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file useragentgen-1.0.tar.gz.
File metadata
- Download URL: useragentgen-1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a19e72f1fffb85aa9ae872ee27faf6261188c6c2a5ad1a00770ebd3d57322108
|
|
| MD5 |
5cae7b02c760eb72d2447ac0ad3ac88f
|
|
| BLAKE2b-256 |
906978049904ca57781cd07628e330732159238fcb72657fe22e0f92218e38bf
|
File details
Details for the file useragentgen-1.0-py3-none-any.whl.
File metadata
- Download URL: useragentgen-1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a7778f634febf31e366e588ae570aff378459443ad73239833ea6509a43ca07
|
|
| MD5 |
1f7e682f74c9d83909554dfd1143009f
|
|
| BLAKE2b-256 |
8a501a890620a1a31ea8bb4d3c12a89c053807f56924c319ea008a75a53a1059
|