简介
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'
Metadata
Release files for browser-useragent 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| browser_useragent-0.0.1.tar.gz | 1.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| browser_useragent-0.0.1-py3.6.egg | Legacy Egg format | - | - | Details |
| browser_useragent-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / browser_useragent-0.0.1.tar.gz
| Download URL | browser_useragent-0.0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de44e4373206c2a3a72a583b91ebd07e7f12836582f229e72289b2d524d74d99
|
|
BLAKE2b-256 checksum How to use checksums |
8ec9846c9767acf5efe994d853a96c8a516ca4a5939a9cfa147c98a6277515b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / browser_useragent-0.0.1-py3.6.egg
| Download URL | browser_useragent-0.0.1-py3.6.egg |
|---|---|
| Size | 1.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d6081ce842e6bb3c41dd39833c8f81b91aa83c8f65fd4254716d0b4f049f9cd3
|
|
BLAKE2b-256 checksum How to use checksums |
84a27dd4aa4e8441eeadaa6ba7b665619a01ca2730e719cb7463e0496b994d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / browser_useragent-0.0.1-py3-none-any.whl
| Download URL | browser_useragent-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efbf39acce836d2dfebd64b0bc6b0087717d76005ee2cc2c99ed53af4e07d001
|
|
BLAKE2b-256 checksum How to use checksums |
24bd4355b83c2a6d2ccfd43b20d64ef9178ba92f8814a6031e1e540230134c65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|