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 random_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.0.1.tar.gz
(28.3 kB
view hashes)
Built Distribution
Close
Hashes for r_useragent-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 180b2766dad6364de6cbe2b12ea70676a385e8a36becfc49fd1c5ba8e017efe0 |
|
MD5 | 2dd42e50351473a7bb0ebde9701a0db7 |
|
BLAKE2b-256 | 914833cd9e791f7156d9b041e5033aa222ce0fdbcbc3788a702bfcfbe7fa93aa |