random-useragent
This is a package to generate random user-agent. support simulating windows, linux, mac, android and simulating multiple browser clients.
how to install
python3 -m pip install r-useragent
how to use
reference examples folder
from random_useragent import UserAgent
u = UserAgent()
# generate android user-agent
print(u.android()) # random
print(u.android(app="app"))
print(u.android(app="webview"))
print(u.android(app="uc"))
print(u.android(app="baidu"))
print(u.android(app="qq"))
print(u.android(app="wechat"))
# generate iphone user-agent
print(u.iphone())
print(u.iphone(app="chrome"))
print(u.iphone(app="safari"))
# generate windows user-agent from chrome,firefox,edge...
print(u.windows()) # random
print(u.windows(app="chrome"))
print(u.windows(app="firefox"))
print(u.windows(app="edge"))
# generate linux user-agent
print(u.linux())
print(u.linux(app="chrome"))
print(u.linux(app="firefox"))
# generate mac user-agent
print(u.mac())
print(u.mac(app="chrome"))
print(u.mac(app="firefox"))
print(u.mac(app="safiri"))
# and if you want, you can just generate random ua
print(u.random())
# or designated platform
print(u.pc())
Metadata
Release files for r-useragent 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| r_useragent-1.1.tar.gz | 28.5 kB | Without provenance | Details for r_useragent-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| r_useragent-1.1-py3-none-any.whl | Python 3 | none | any | Details for r_useragent-1.1-py3-none-any.whl |
Total release size: 59.4 kB
Release files / r_useragent-1.1.tar.gz
| Download URL | r_useragent-1.1.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62a81149b25e34b75d384cf781c421ac9f47390e5dd300f4818c4168b4a2815f
|
|
BLAKE2b-256 checksum How to use checksums |
f8d887c06deeba27631ec11df7f8c08c67da1946806c098412952477e76ac085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / r_useragent-1.1-py3-none-any.whl
| Download URL | r_useragent-1.1-py3-none-any.whl |
|---|---|
| Size | 30.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24193eaa09a7720e1a229fcd97377419e52fd92f9e3db3e2f2a170d3f7baf16f
|
|
BLAKE2b-256 checksum How to use checksums |
e640a91cba904d29926cfebed04320f59a448a7e4f0aea2a69f8e482767cae50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for r-useragent 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.