当前位置:网站首页>伪装请求头库: anti-useragent
伪装请求头库: anti-useragent
2022-07-01 06:17:00 【HHYZBC】
下载方法:
pip install anti_useragent使用方法:
导入UserAgent
from anti_useragent import UserAgent实例化对象
ua = UserAgent() #实例化对象获取请求头
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并且该模块支持对请求头信息的自定义:
- 指定平台: windows, mac, linux:
ua = UserAgent(platform='mac')默认为 windows
- 指定浏览器最小和最大版本:
ua = UserAgent(max_version=90) # 最大版本
ua = UserAgent(min_version=50) # 最小版本边栏推荐
- three. JS summary
- SOE spatial analysis server MySQL and PostGIS geospatial database of Postgres anti injection attack
- IT服务管理(ITSM)在高等教育领域的应用
- 证券类开户有什么影响 开户安全吗
- Database problems, how to optimize Oracle SQL query statements faster and more efficient
- Pit of kotlin bit operation (bytes[i] and 0xff error)
- jdbc-连接池
- Kubedm builds kubenetes cluster (Personal Learning version)
- Small guide for rapid completion of mechanical arm (VI): stepping motor driver
- Transformer le village de tiantou en un village de betteraves sucrières
猜你喜欢

ForkJoin和Stream流测试

DHT11 温湿度传感器

PLA不粘貼在床上:6個簡單的解决方案

Essay learning record essay multi label Global

【ManageEngine卓豪 】助力世界顶尖音乐学院--茱莉亚学院,提升终端安全

Top 10 Free 3D modeling software for beginners in 2022

可动的机械挂钟

One of the characteristic agricultural products that make Tiantou village, Guankou Town, Xiamen into a "sweet" village is

Talking from mlperf: how to lead the next wave of AI accelerator

69 cesium code datasource loading geojson
随机推荐
[summary of knowledge points] chi square distribution, t distribution, F distribution
Pla ne colle pas sur le lit: 6 solutions simples
B-tree series
Picture server project test
HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10
Freeswitch dial the extension number
子类调用父类的同名方法和属性
Forkjoin and stream flow test
Differences between in and exists in MySQL
1034 Head of a Gang
B-树系列
Infinite horizontal marble game
1034 Head of a Gang
jdbc-连接池
Stack Title: parsing Boolean expressions
What if the data in the cloud disk is harmonious?
做技术,自信不可或缺
Pychart configuring jupyter
Tidb single machine simulation deployment production environment cluster (closed pit practice, personal test is effective)
Record currency in MySQL