当前位置:网站首页>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 !
边栏推荐
- [fortress machine] what is the difference between cloud fortress machine and ordinary fortress machine?
- 用例图
- 【日常训练--腾讯精选50】231. 2 的幂
- Common response status codes
- [AI practice] Application xgboost Xgbregressor builds air quality prediction model (II)
- Lavarel之环境配置 .env
- 手里的闲钱是炒股票还是买理财产品好?
- How to check the ram and ROM usage of MCU through Keil
- 请问,PTS对数据库压测有好方案么?
- [network security] SQL injection syntax summary
猜你喜欢
![[Reading stereo matching papers] [III] ints](/img/d3/4238432492ac3dc4ec14a971b8848d.png)
[Reading stereo matching papers] [III] ints

Vscode configuration uses pylint syntax checker

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

TPG x AIDU | AI leading talent recruitment plan in progress!

Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf

2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out

libSGM的horizontal_path_aggregation程序解读

使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )

Flask session forged hctf admin

Dry goods | summarize the linkage use of those vulnerability tools
随机推荐
Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]
Attribute keywords aliases, calculated, cardinality, ClientName
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
Wired network IP address of VMware shared host
566. Reshaping the matrix
2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
【日常训练】648. 单词替换
使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
[AI practice] Application xgboost Xgbregressor builds air quality prediction model (II)
NDK beginner's study (1)
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
Environment configuration of lavarel env
请问指南针股票软件可靠吗?交易股票安全吗?
Battle Atlas: 12 scenarios detailing the requirements for container safety construction
How does MySQL control the number of replace?
Es log error appreciation -limit of total fields
Excellent open source system recommendation of ThinkPHP framework
c#通过frame 和 page 切换页面