当前位置:网站首页>[crawler] avoid script detection when using selenium
[crawler] avoid script detection when using selenium
2022-07-07 12:46:00 【Big watermelon and small chestnut】
Problem phenomenon
There is a slider in a script attempt to login , No matter how you drag it , It will report errors . Even if the script fills in the data , Dragging the slider by yourself will always report errors .
Problem solving
This problem is mainly due to the application's detection of scripts . The basis of the test is
window.navigator.webdriver
The following figure is modified , Return before setting true.
When requesting a page , The first options Set it up . The following code is only for chrome 88 Useful above version .

Script
from selenium.webdriver.chrome.options import Options
option = Options()
option.add_argument('--disable-blink-features=AutomationControlled')
web = Chrome(options=option)
web.get("https://www.baidu.com")
边栏推荐
- 【从 0 开始学微服务】【01】什么是微服务
- 聊聊Redis缓存4种集群方案、及优缺点对比
- Master formula. (used to calculate the time complexity of recursion.)
- SQL Lab (46~53) (continuous update later) order by injection
- Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
- SQL injection -- Audit of PHP source code (take SQL lab 1~15 as an example) (super detailed)
- The left-hand side of an assignment expression may not be an optional property access.ts(2779)
- 用mysql查询某字段是否有索引
- 【从 0 开始学微服务】【00】课程概述
- JS to convert array to tree data
猜你喜欢

leetcode刷题:二叉树19(合并二叉树)

The road to success in R & D efficiency of 1000 person Internet companies

Connect to blog method, overload, recursion

聊聊Redis缓存4种集群方案、及优缺点对比

解密GD32 MCU产品家族,开发板该怎么选?

RHSA first day operation

浅谈估值模型 (二): PE指标II——PE Band

opencv的四个函数

About sqli lab less-15 using or instead of and parsing

Vxlan static centralized gateway
随机推荐
静态Vxlan 配置
Cookie
【PyTorch实战】图像描述——让神经网络看图讲故事
test
leetcode刷题:二叉树22(二叉搜索树的最小绝对差)
Vxlan 静态集中网关
ps链接图层的使用方法和快捷键,ps图层链接怎么做的
利用栈来实现二进制转化为十进制
2022-07-07日报:GAN发明者Ian Goodfellow正式加入DeepMind
Tutorial on principles and applications of database system (009) -- conceptual model and data model
Day-19 IO stream
Utiliser la pile pour convertir le binaire en décimal
2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
[statistical learning methods] learning notes - improvement methods
BGP actual network configuration
The left-hand side of an assignment expression may not be an optional property access.ts(2779)
Day-15 common APIs and exception mechanisms
Minimalist movie website
HZOJ #235. 递归实现指数型枚举
Guangzhou held work safety conference