generate random user-agent
Project description
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 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())
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
r_useragent-0.1.1.tar.gz
(27.8 kB
view hashes)
Built Distribution
Close
Hashes for r_useragent-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e3806303c68f679162d703ecd67adadcf8cae25e96f92201ba85d2a51048ff |
|
MD5 | 40de4e4422fce07f06eb3f1f42590107 |
|
BLAKE2b-256 | 567af17b28df919e1b3534953a75f12368de64cfed602184acb35bdf1a043cd9 |