当前位置:网站首页>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 !
边栏推荐
猜你喜欢

AI talent cultivation new ideas, this live broadcast has what you care about

docker部署oracle

Dry goods | summarize the linkage use of those vulnerability tools

高等數學---第八章多元函數微分學1

【立体匹配论文阅读】【三】INTS

SAKT方法部分介绍

Mathématiques avancées - - chapitre 8 différenciation des fonctions multivariables 1

最长上升子序列模型 AcWing 1014. 登山

Use day JS let time (displayed as minutes, hours, days, months, and so on)

2022-7-6 beginner redis (I) download, install and run redis under Linux
随机推荐
mysql ”Invalid use of null value“ 解决方法
2022-7-7 Leetcode 844. Compare strings with backspace
IP address home location query full version
PostgreSQL array type, each splice
Did login metamask
Transferring files between VMware and host
NDK beginner's study (1)
118. Yanghui triangle
2022-7-6 Leetcode 977. Square of ordered array
Arm cortex-a9, mcimx6u7cvm08ad processor application
Assign a dynamic value to the background color of DataGrid through ivalueconverter
最长上升子序列模型 AcWing 482. 合唱队形
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
3D Detection: 3D Box和点云 快速可视化
Introduction to database system - Chapter 1 introduction [conceptual model, hierarchical model and three-level mode (external mode, mode, internal mode)]
[daily training -- Tencent select 50] 231 Power of 2
VSCode 配置使用 PyLint 语法检查器
. Net core about redis pipeline and transactions
Flask session forged hctf admin
UML 顺序图(时序图)