当前位置:网站首页>Camouflage request header Library: Anti useragent
Camouflage request header Library: Anti useragent
2022-07-01 06:27:00 【HHYZBC】
Download method :
pip install anti_useragent
Usage method :
Import UserAgent
from anti_useragent import UserAgent
Instantiate objects
ua = UserAgent() # Instantiate objects
Get request header
ua.chrome
# Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_7} like Mac OS X) AppleWebKit/266.12 (KHTML, like Gecko) Version/9.0 Mobile/GAJLPQ Safari/266.12
And the module supports the customization of request header information :
- Designated platform : windows, mac, linux:
ua = UserAgent(platform='mac')
The default is windows
- Specify browser minimum and maximum versions :
ua = UserAgent(max_version=90) # The biggest version
ua = UserAgent(min_version=50) # Minimum version
边栏推荐
- HCM Beginner (IV) - time
- 码力十足学量化|如何在财务报告寻找合适的财务公告
- Application of IT service management (ITSM) in Higher Education
- Golang panic recover custom exception handling
- make: g++:命令未找到
- sci-hub如何使用
- [summary of problem thinking] Why is the register reset performed in user mode?
- VS2019如何永久配置本地OpenCV4.5.5使用
- FPGA - clocking -02- clock wiring resources of internal structure of 7 Series FPGA
- 【网络安全工具】USB控制软件有什么用
猜你喜欢
[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security
Tidb database characteristics summary
[file system] how to run squashfs on UBI
Detailed steps for installing redis on Windows system
C language course set up library information management system (big homework)
sci-hub如何使用
async 与 await
Redis安装到Windows系统上的详细步骤
B-tree series
[ITSM] what is ITSM and why does it department need ITSM
随机推荐
分布式锁实现
FPGA - clocking -02- clock wiring resources of internal structure of 7 Series FPGA
Diffusion (multi-source search)
SystemVerilog learning-07-class inheritance and package use
【ManageEngine】终端管理系统,助力华盛证券数字化转型
浅谈SIEM
libpng12.so. 0: cannot open shared object file: no such file or directory
HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10
Application of IT service management (ITSM) in Higher Education
端口扫描工具对企业有什么帮助?
B-树系列
HCM Beginner (I) - Introduction
High order binary search tree
[ITSM] what is ITSM and why does it department need ITSM
Three minutes to quickly understand the whole process of website development
Recueillir des trésors dans le palais souterrain (recherche de mémoire profonde)
C# ManualResetEvent 类的理解
图片服务器项目测试
局域网监控软件有哪些功能
JDBC connection pool