当前位置:网站首页>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 !
边栏推荐
- IP address home location query
- docker部署oracle
- ES日志报错赏析-Limit of total fields
- . Net core about redis pipeline and transactions
- What are the principles for distinguishing the security objectives and implementation methods that cloud computing security expansion requires to focus on?
- Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
- mysql ”Invalid use of null value“ 解决方法
- call undefined function openssl_cipher_iv_length
- 118. Yanghui triangle
- 請問,在使用flink sql sink數據到kafka的時候出現執行成功,但是kafka裏面沒有數
猜你喜欢

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

Evolution of customer service hotline of dewu

Vmware共享主机的有线网络IP地址

"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?

libSGM的horizontal_path_aggregation程序解读

手把手教会:XML建模

UML 顺序图(时序图)

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

Did login metamask

AI人才培育新思路,这场直播有你关心的
随机推荐
最长上升子序列模型 AcWing 1012. 友好城市
First choice for stock account opening, lowest Commission for stock trading account opening, is online account opening safe
Vmware 与主机之间传输文件
现在网上开户安全么?那么网上开户选哪个证券公司?
高等数学---第八章多元函数微分学1
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)
requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
Redis can only cache? Too out!
How can the PC page call QQ for online chat?
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
参数关键字Final,Flags,Internal,映射关键字Internal
docker部署oracle
供应链供需预估-[时间序列]
Clickhouse (03) how to install and deploy Clickhouse
ndk初学习(一)
Leetcode simple question sharing (20)
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
WPF DataGrid realizes the UI interface to respond to a data change in a single line
Learning breakout 2 - about effective learning methods
Mysql怎样控制replace替换的次数?