当前位置:网站首页>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 !
边栏推荐
- UML sequence diagram (sequence diagram)
- First choice for stock account opening, lowest Commission for stock trading account opening, is online account opening safe
- 手把手教会:XML建模
- Clickhouse (03) how to install and deploy Clickhouse
- Parsing of XML files
- How to check the ram and ROM usage of MCU through Keil
- Vmware共享主机的有线网络IP地址
- Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
- Lavarel之环境配置 .env
- 2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
猜你喜欢

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

Redis can only cache? Too out!

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

Best practice | using Tencent cloud AI willingness to audit as the escort of telephone compliance

AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?

AI人才培育新思路,这场直播有你关心的

PERT图(工程网络图)

一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
![Supply chain supply and demand estimation - [time series]](/img/2c/82d118cfbcef4498998298dd3844b1.png)
Supply chain supply and demand estimation - [time series]
![Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]](/img/d3/20674983717d829489149b4d3bfedf.png)
Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]
随机推荐
PERT图(工程网络图)
bashrc与profile
使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
118. 杨辉三角
CSMA/CD 载波监听多点接入/碰撞检测协议
Huawei image address
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf
高等數學---第八章多元函數微分學1
Redis can only cache? Too out!
Excellent open source system recommendation of ThinkPHP framework
手把手教会:XML建模
Parsing of XML files
. Net core about redis pipeline and transactions
【日常训练--腾讯精选50】231. 2 的幂
WPF DataGrid realizes the UI interface to respond to a data change in a single line
TPG x AIDU | AI leading talent recruitment plan in progress!
属性关键字Aliases,Calculated,Cardinality,ClientName
Assign a dynamic value to the background color of DataGrid through ivalueconverter
Seven propagation behaviors of transactions
AI talent cultivation new ideas, this live broadcast has what you care about