Skip to main content

简单 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]

Metadata

Release files for uagen 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uagen 0.0.1
File Size Uploaded
uagen-0.0.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uagen 0.0.1
File Interpreter ABI Platform
uagen-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / uagen-0.0.1.tar.gz

Download URL uagen-0.0.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fee2d0c0687f3980c037f57eccba51a771303f002d5be916b1745f210269046c
BLAKE2b-256 checksum
How to use checksums
ea7fa6205559dd573b916e5ca43639af2d2fa7e605c9ea8c18a2b05901b1b7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release files / uagen-0.0.1-py3-none-any.whl

Download URL uagen-0.0.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1898f352ad1a424a5854973b0e777a249b694fd003eef3e02e92dd7892d01555
BLAKE2b-256 checksum
How to use checksums
aeedf18909cc2e69e799053272901e4f6d45196c79c0d7770f5d583a4c759a16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page