当前位置:网站首页>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 !
边栏推荐
- 请问,redis没有消费消息,都在redis里堆着是怎么回事?用的是cerely 。
- 带你掌握三层架构(建议收藏)
- SAKT方法部分介绍
- 内存溢出和内存泄漏的区别
- 通过 iValueConverter 给datagrid 的背景颜色 动态赋值
- Excellent open source system recommendation of ThinkPHP framework
- When FC connects to the database, do you have to use a custom domain name to access it outside?
- 参数关键字Final,Flags,Internal,映射关键字Internal
- [network security] SQL injection syntax summary
- Laravel Form-builder使用
猜你喜欢
Redis 核心数据结构 & Redis 6 新特性详
常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼
带你掌握三层架构(建议收藏)
PERT图(工程网络图)
最长上升子序列模型 AcWing 1012. 友好城市
Leecode3. Longest substring without repeated characters
Wired network IP address of VMware shared host
SAKT方法部分介绍
Reverse non return to zero code, Manchester code and differential Manchester code of common digital signal coding
GVIM [III] [u vimrc configuration]
随机推荐
PC端页面如何调用QQ进行在线聊天?
Leecode3. Longest substring without repeated characters
最长上升子序列模型 AcWing 1014. 登山
Laravel form builder uses
UML sequence diagram (sequence diagram)
Cesium knows the longitude and latitude of one point and the distance to find the longitude and latitude of another point
[Reading stereo matching papers] [III] ints
Dry goods | summarize the linkage use of those vulnerability tools
手里的闲钱是炒股票还是买理财产品好?
搜索框效果的实现【每日一题】
请问,PTS对数据库压测有好方案么?
Evolution of customer service hotline of dewu
XML文件的解析操作
[daily training] 648 Word replacement
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
Hands on Teaching: XML modeling
【网络安全】sql注入语法汇总
566. 重塑矩阵
Leetcode simple question sharing (20)
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点