Skip to main content

简介

browser_useragent 库共包含246个浏览器请求头

参考fake_useragent库,对其进行了简化,解决网络不好文件下载失败的问题

chrome, opera, firefox, safari, internetexplorer

来源: fake_useragent: http://d2g6u4gh6d9rq0.cloudfront.net/browsers/fake_useragent_0.1.9.json

快速开始

安装

pip install browser_useragent

使用

>>from browser_useragent import get_user_agent

>>get_user_agent()

>>'Mozilla/5.0 (X11; OpenBSD amd64; rv:28.0) Gecko/20100101 Firefox/28.0'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browser_useragent-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

browser_useragent-0.0.1-py3.6.egg (1.0 kB view details)

Uploaded Egg

browser_useragent-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: browser_useragent-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5

File hashes

Hashes for browser_useragent-0.0.1.tar.gz
Algorithm Hash digest
SHA256 de44e4373206c2a3a72a583b91ebd07e7f12836582f229e72289b2d524d74d99
MD5 029e872cf5f9628d20f9c94782566f4f
BLAKE2b-256 8ec9846c9767acf5efe994d853a96c8a516ca4a5939a9cfa147c98a6277515b2

See more details on using hashes here.

File details

Details for the file browser_useragent-0.0.1-py3.6.egg.

File metadata

  • Download URL: browser_useragent-0.0.1-py3.6.egg
  • Upload date:
  • Size: 1.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5

File hashes

Hashes for browser_useragent-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 d6081ce842e6bb3c41dd39833c8f81b91aa83c8f65fd4254716d0b4f049f9cd3
MD5 912fe890260f22be28a102ce8d515054
BLAKE2b-256 84a27dd4aa4e8441eeadaa6ba7b665619a01ca2730e719cb7463e0496b994d3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browser_useragent-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5

File hashes

Hashes for browser_useragent-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efbf39acce836d2dfebd64b0bc6b0087717d76005ee2cc2c99ed53af4e07d001
MD5 013406d02ab1b4f03d18d8ef6853f00d
BLAKE2b-256 24bd4355b83c2a6d2ccfd43b20d64ef9178ba92f8814a6031e1e540230134c65

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page