当前位置:网站首页>A treasure simulates login and reduces the method of secondary verification
A treasure simulates login and reduces the method of secondary verification
2022-07-28 03:32:00 【Fan zhidu】
When climbing a treasure , Simulated clicking to open a new page often requires re login , At this time, you can open a browser locally , Set listening port , Simulate the browser under this port , In this way, the browser will remember all user behaviors , As long as you log in once, you don't have to log in again .
Step one , Directly in what you are using ( Instead of selenium Called , Enter by shortcut )chrome.exe Open the command line at the location and enter
chrome.exe --remote-debugging-port=9222
Or use py file :
from selenium import webdriver
import time
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument('--remote-debugging-port=9222')
driver = webdriver.Chrome(options = chromeOptions)
while True:
time.sleep(100)!!! You must be here selenium Simulated chrome.exe The version is the same as the one you want to fix the port in use chrome.exe identical , And then use selenium Add the following code to the file of :
from selenium import webdriver
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
driver = webdriver.Chrome(options = chromeOptions)边栏推荐
- 20220727 use the Bluetooth module hc-05 of Huicheng technology to pair mobile phones for Bluetooth serial port demonstration
- SQL Server备份数据库的方法
- Version compatibility issues
- 图文并茂:JVM 内存布局详解
- Redis实现分布式锁
- 容器相关的概念
- Shell writing specifications and variables
- 光年(Light Year Admin)后台管理系统模板
- The open source of "avoiding disease and avoiding medicine" will not go far
- Detailed tutorial of one click reinstallation of win7 system
猜你喜欢

Acid characteristics of MySQL transactions and example analysis of concurrency problems

Engineering Geology Practice - engineering geology problem set

MySQL事务的ACID特性及并发问题实例分析

After reading MySQL database advanced practice (SQL xiaoxuzhu)

Shell编写规范和变量

如何让外网访问内网IP(esp8266网页使用)

4天Excel实战训练营,0.01元特惠仅三天,赠200套学习资料包

工程地质实习-工程地质 题集

整合SSM实现增删改查搜索

AIRIOT答疑第6期|如何使用二次开发引擎?
随机推荐
容器相关的概念
redis网络模型解析
IronOCR for .NET 2022.8
ThreadLocal usage scenario
如何解决mysql深分页问题
Animation
When QML uses layout layout, a large number of < unknown file >: QML qquicklayoutattached: binding loop detected for property circular binding warnings appear
“讳疾忌医”的开源走不远
如何卸载干净zabbix服务?(超详细)
2022-07-27:小红拿到了一个长度为N的数组arr,她准备只进行一次修改, 可以将数组中任意一个数arr[i],修改为不大于P的正数(修改后的数必须和原数不同), 并使得所有数之和为X的倍数。
Redis基本操作
【Codeforces Round #806 (Div. 4)(A~F)】
Win11 how to rename an audio device
The object array is converted to string and then separated by strings, including the competition to select the children of a field, or the sum,
「运维有小邓」网络设备监控
动画(animation)
mysql存储过程 使用游标实现两张表数据同步数据
What are the fragments of MySQL
C语言实现动态版本的通讯录
Hotel VR panoramic display shooting provides more opportunities for cooperation and negotiation