python安装selenium
来源:互联网 发布:上瘾网络剧免费观看 编辑:程序博客网 时间:2024/06/05 15:00
命令行输入:
pip install selenium
进入python3.6下:
import seleniumfrom selenium import webdriverdriver = webdriver.Chrome()
报错:
FileNotFoundError: [WinError 2] 系统找不到指定的文件。selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- 这就需要下载ChromeDriver了
- 下载好后解压
- 然后将解压的.exe拷贝到python36的Scripts路径下
- 命令行输入:
chromedriver
输出以下可以了:
Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b3704b) on port 9515Only local connections are allowed.
然后进入python3.6下:
import seleniumfrom selenium import webdriverdriver = webdriver.Chrome()<!--发现弹出一个谷歌页面-->
接着输入:
driver.get('http://www.baidu.com')
打开一个百度页面
ok了........
阅读全文
0 0
- 安装python+selenium
- Python安装基础+selenium
- python selenium安装
- Python+selenium环境安装
- python 安装selenium环境
- selenium-python安装
- python+selenium 安装配置
- Python安装Selenium
- [Python]Selenium的安装
- mac selenium+python 安装
- 安装python-selenium环境
- python+selenium+pychar安装
- Python爬虫Selenium安装
- python安装selenium
- python+selenium安装配置教程
- Python pip selenium安装配置
- Mac selenium python版本安装
- selenium+python环境安装详解
- 存储过程+嵌套游标结合使用的实例
- 缓存
- POI导出EXCEL经典实现
- requirejs
- 面试之ANR,一网打尽
- python安装selenium
- rxjs5.X系列 —— ErrorHandling/Condition/Mathematical系列 api 笔记
- java类与对象个人理解2
- python 学习与使用小tips
- Python与C#的区别
- ubuntu14.04 64位系统 解决gcc命令不识别头文件问题以及为满足依赖关系问题
- 7、PCIE总线-PCI、PCIE关系及信号定义
- 趣旅:来看看中国人去的最多的境外旅游景点有那些
- case when else end语句