由于国内网络限制无法使用 fake_useragent 库而制作的替代品
Project description
call_useragent
安装
pip install --user call_useragent
使用
- 随机调用
import call_useragent
headers = {'User-Agent': call_useragent.random()}
后续也许会有其他功能
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
call_useragent-0.0.1.tar.gz
(17.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file call_useragent-0.0.1.tar.gz.
File metadata
- Download URL: call_useragent-0.0.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
191c06a272d436c7fab73f222cbd023cb6b7782c485b616ea08d0c37cf5eb652
|
|
| MD5 |
75be001a1b29aa9daad235b683523c0e
|
|
| BLAKE2b-256 |
1574a489d11b8565e1ba934cad3d311844156959a4f9853c0b71271762680ab2
|
File details
Details for the file call_useragent-0.0.1-py3-none-any.whl.
File metadata
- Download URL: call_useragent-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dba23df663fb80f53eec7a191e99e6dc4cd1aff274ec2bfeca34d66d5b9f8e0
|
|
| MD5 |
0878395f1d9b909ad5117aee41439070
|
|
| BLAKE2b-256 |
53e4fdd0f5cf64af0e567636f644640ee24edb726d4569e0c32e721e7acdc155
|