Skip to main content

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


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 details)

Uploaded Source

Built Distribution

uagen-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file uagen-0.0.1.tar.gz.

File metadata

  • Download URL: uagen-0.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for uagen-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fee2d0c0687f3980c037f57eccba51a771303f002d5be916b1745f210269046c
MD5 bde66c08a193eab659f94df25b1bd5d5
BLAKE2b-256 ea7fa6205559dd573b916e5ca43639af2d2fa7e605c9ea8c18a2b05901b1b7b0

See more details on using hashes here.

File details

Details for the file uagen-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: uagen-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for uagen-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1898f352ad1a424a5854973b0e777a249b694fd003eef3e02e92dd7892d01555
MD5 40d44f3cabffcc7fe4593c25d1d31707
BLAKE2b-256 aeedf18909cc2e69e799053272901e4f6d45196c79c0d7770f5d583a4c759a16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page