A tool to generate a random user_agent
Project description
简单 UA 生成器
须知:
-
根据版本规则生成很多很多个不同的 ua (我也没数过,总之很多)
-
有 chrome 和 firefox 和 opera 的
-
有些可能没有用
-
可以在代码中 import,也可以在终端测试
-
UA用不了别怪我
安装:
# 注意是 uagen, 不是 uagent, 那是另外一个老兄的
$ pip3 install uagen
代码导入:
import uagen
random_user_agent = uagen.random_ua() # 随机 ua
firefox_user_agent = uagen.firefox_ua() # firefox ua
chrome_user_agent = uagen.chrome_ua() # chrome ua
opera_user_agent = uagen.opera_ua() # opera ua
终端:
# 生成一个 ua,在终端打印出来
$ uagen [-m --mode random/firefox/chrome/opera]
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
uagen-0.0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
uagen-0.0.1-py3-none-any.whl
(7.0 kB
view hashes)