搭建环境,安装python+selenium
来源:互联网 发布:数据中标网 编辑:程序博客网 时间:2024/06/06 03:41
计划一个月学习完一个博主的python+selenium部分内容,总共60篇文章,学完要自己学着总结
这一篇介绍python及selenium安装,介绍浏览器驱动与浏览器版本的对应关系
首先小伙伴的电脑中已经下载安装配置好jdk
1.安装python,python官网
安装过程中记得勾选 add python.exe to path ,它会自动把路径添加到path中,其余的默认安装即可
python3安装包分享链接: https://pan.baidu.com/s/1i4A1wKt 密码: n3mj
2.安装selenium
(1)可使用python自带的安装包管理工具pip来进行安装
打开cmd,运行pip install selenium,也可指定版本pip ianstall selenium==3.4.3
(2)下载安装包进行安装
官方下载地址:https://pypi.python.org/pypi/selenium
上述地址会下载最新版的 Selenium,目前最先版的是 3.4.3,您也可以根据以下路径下载指定的 3.4.3
Selenium 3.4.3 下载地址:https://pypi.python.org/pypi/selenium/3.4.3#downloads
下载后,解压该压缩包
然后用命令行进入该压缩包的根目录,输入命令进行安装:python setup.py install
3.配置浏览器和驱动
Selenium 2 可以默认支持Firefox 46.0或者更低版本,对于其他浏览器需要额外安装驱动。
Selenium 3 对于所有的浏览器都需要安装驱动:
ChromeDriver下载地址:http://chromedriver.storage.googleapis.com/index.html
ChromeDriver 与Chrome版本对应关系:
GeckoDriver下载地址:https://github.com/mozilla/geckodriver/releases
GeckoDriver 与 Firefox 的对应关系表:
IEDriverServer下载地址:http://seleniumrelease.storage.googleapis.com/index.html
IEDriverServer 的版本需要与 Selenium 保持严格一致。
- 搭建环境,安装python+selenium
- Python + Selenium环境搭建
- selenium+python搭建环境
- Selenium+python环境搭建
- Selenium+Python 环境搭建
- python selenium 环境搭建
- selenium+python环境搭建
- Python+Selenium环境搭建
- selenium python环境搭建
- Python+selenium环境搭建
- selenium+Python环境搭建
- 搭建selenium + python环境
- 搭建Python+Selenium环境
- selenium + python环境搭建
- selenium + python环境搭建
- Python+selenium环境安装
- python 安装selenium环境
- 安装python-selenium环境
- Previous operation has not finished; run 'cleanup' if it was interrupted
- Centos网络带宽验证与网络监控工具
- Git使用手册:Git的使用:工作区、暂存区、本地仓库、远程仓库
- 浅析指针
- Macaca 实现 iosMonkey (python 版)
- 搭建环境,安装python+selenium
- android对数据按照时间排序
- Map(3)--treeMap的排序
- linux的uuid
- JS中值类型与引用类型分析
- (2)操作系统运行环境与运行机制
- windows 问题 LoadLibrary失败,GetLastError= 193
- Sodility配置本地IDE和共享目录
- JAVA实现UTC时间转换成北京时间