当前位置:网站首页>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 !
边栏推荐
- The reason why data truncated for column 'xxx' at row 1 appears in the MySQL import file
- 118. Yanghui triangle
- Take you to master the three-tier architecture (recommended Collection)
- UML 顺序图(时序图)
- Environment configuration of lavarel env
- 3D Detection: 3D Box和点云 快速可视化
- wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
- PC端页面如何调用QQ进行在线聊天?
- XML文件的解析操作
- Excerpt from "misogyny: female disgust in Japan"
猜你喜欢

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

566. 重塑矩阵

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

带你掌握三层架构(建议收藏)

2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers

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)

libSGM的horizontal_path_aggregation程序解读

. Net core about redis pipeline and transactions

Redis can only cache? Too out!

使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
随机推荐
IP and long integer interchange
Excusez - moi, l'exécution a été réussie lors de l'utilisation des données de puits SQL Flink à Kafka, mais il n'y a pas de nombre dans Kafka
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
Supply chain supply and demand estimation - [time series]
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
最长上升子序列模型 AcWing 1014. 登山
Details of redis core data structure & new features of redis 6
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
Excuse me, as shown in the figure, the python cloud function prompt uses the pymysql module. What's the matter?
带你掌握三层架构(建议收藏)
The difference between memory overflow and memory leak
Is it safe to open an account online now? Which securities company should I choose to open an account online?
Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?
Horizontal of libsgm_ path_ Interpretation of aggregation program
使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
請問,在使用flink sql sink數據到kafka的時候出現執行成功,但是kafka裏面沒有數
最长上升子序列模型 AcWing 482. 合唱队形
wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
Laravel Form-builder使用