当前位置:网站首页>Selenium Library
Selenium Library
2022-07-07 14:13:00 【Full code strength and scientific quantification】
selenium Library is an automated testing tool , It can drive the browser to simulate human operation , Such as mouse click 、 Keyboard input, etc .
adopt selenium The library can easily obtain the source code of web pages , It can also automatically download network content in batches .
Public information of Shanghai Stock Exchange 、 Sina Finance's real-time stock market data and other web pages are dynamically rendered , And by
Conventional crawler methods get unreported information , In the face of this non rendered web page , In data mining, we need to use
selenium library , By simulating the operation of people in the browser , Get the rendered web page source code quickly .
One 、 Simulation browser chromeDriver Download and install of
1. Install Google Chrome and check the version number
install chromedriver Before , You have to install Google browser first , Then check the version of Google browser installed .
Click three points in the upper right corner of the browser , Then click Help , Click on about google chrome command , In relation to Chrome Dialog box
You can see the version number of the currently installed Google browser .
2.chromedriver download
chromedriver Version needs to be associated with Chrome Versions, , The author chrome Version is 103.0.0506, Just find
chromedriver Just the same version . The specific operation is as follows :
chromedriver Official download address :https://npm.taobao.org/mirrors/chromedriver/
or
http://chromedriver.storage.googleapis.com/index.html
The following figure shows the completion of installation !
Two 、selenium The installation of the library
pip install selenium
The following figure shows the completion of installation !
边栏推荐
- 高等数学---第八章多元函数微分学1
- Sliding rail stepping motor commissioning (national ocean vehicle competition) (STM32 master control)
- 最长上升子序列模型 AcWing 1012. 友好城市
- Leetcode simple question sharing (20)
- call undefined function openssl_cipher_iv_length
- Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
- Es log error appreciation -limit of total fields
- First choice for stock account opening, lowest Commission for stock trading account opening, is online account opening safe
- Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
- Hands on Teaching: XML modeling
猜你喜欢
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
数据流图,数据字典
Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
Leecode3. Longest substring without repeated characters
Hands on Teaching: XML modeling
Reverse non return to zero code, Manchester code and differential Manchester code of common digital signal coding
Horizontal of libsgm_ path_ Interpretation of aggregation program
一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
Dry goods | summarize the linkage use of those vulnerability tools
随机推荐
WPF DataGrid realizes the UI interface to respond to a data change in a single line
SAKT方法部分介绍
[daily training -- Tencent select 50] 231 Power of 2
请问,我kafka 3个分区,flinksql 任务中 写了 join操作,,我怎么单独给join
使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
参数关键字Final,Flags,Internal,映射关键字Internal
Cesium knows the longitude and latitude of one point and the distance to find the longitude and latitude of another point
Horizontal of libsgm_ path_ Interpretation of aggregation program
What are the principles for distinguishing the security objectives and implementation methods that cloud computing security expansion requires to focus on?
ndk初学习(一)
Vmware 与主机之间传输文件
Excuse me, as shown in the figure, the python cloud function prompt uses the pymysql module. What's the matter?
[untitled]
2022-7-7 Leetcode 844. Compare strings with backspace
PHP中用下划线开头的变量含义
Seven propagation behaviors of transactions
Clickhouse (03) how to install and deploy Clickhouse
Redis 核心数据结构 & Redis 6 新特性详
Realization of search box effect [daily question]
数据流图,数据字典