当前位置:网站首页>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 !
边栏推荐
- 2022-7-6 beginner redis (I) download, install and run redis under Linux
- Hands on Teaching: XML modeling
- Realization of search box effect [daily question]
- Codes de non - retour à zéro inversés, codes Manchester et codes Manchester différentiels couramment utilisés pour le codage des signaux numériques
- bashrc与profile
- Selenium库
- Environment configuration
- Seven propagation behaviors of transactions
- AI talent cultivation new ideas, this live broadcast has what you care about
- Is the compass stock software reliable? Is it safe to trade stocks?
猜你喜欢
AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?
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?
Use day JS let time (displayed as minutes, hours, days, months, and so on)
SAKT方法部分介绍
2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
Transferring files between VMware and host
最长上升子序列模型 AcWing 482. 合唱队形
AI talent cultivation new ideas, this live broadcast has what you care about
Vscode configuration uses pylint syntax checker
随机推荐
2022-7-6 Leetcode 977. Square of ordered array
[untitled]
【日常训练】648. 单词替换
C # switch pages through frame and page
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
How does MySQL control the number of replace?
PHP中用下划线开头的变量含义
Is the compass stock software reliable? Is it safe to trade stocks?
How to check the ram and ROM usage of MCU through Keil
Introduction to database system - Chapter 1 introduction [conceptual model, hierarchical model and three-level mode (external mode, mode, internal mode)]
MySQL "invalid use of null value" solution
搜索框效果的实现【每日一题】
call undefined function openssl_ cipher_ iv_ length
AI人才培育新思路,这场直播有你关心的
Introduction to sakt method
SAKT方法部分介绍
高等数学---第八章多元函数微分学1
Sliding rail stepping motor commissioning (national ocean vehicle competition) (STM32 master control)
请问指南针股票软件可靠吗?交易股票安全吗?
【立体匹配论文阅读】【三】INTS