标签:... geckodriver Selenium 配置 selenium chromedriver Python36 https
1. 安装selenium库
切换到pip所在文件夹,并安装
c:\>cd /d d:\ d:\>cd Python\Python36\Scripts d:\Python\Python36\Scripts>pip.exe install selenium
安装成功
Collecting selenium Downloading https://files.pythonhosted.org/packages/b8/53/9cafbb616d20c7624f f31bcabd82e5cc9823206267664e68aa8acdde4629/selenium-3.14.0-py2.py3-none-any.wh l (898kB) 29% |█████████▌ | 266kB 1.4MB/s eta 0:00:01 ... ... ... 1kB 1.3MB/s Requirement already satisfied: urllib3 in d:\python\python36\lib\site-paRequirement already satisfied: urllib3 in d:\python\python36\lib\site- (from selenium) (1.23) Installing collected packages: selenium Successfully installed selenium-3.14.0
2. 使用FireFox下载geckodriver,使用chrome下载chromedriver
geckodriver地址:https://github.com/mozilla/geckodriver/releases
chromedriver地址:http://chromedriver.storage.googleapis.com/index.html
注意:chromedriver版本需要与浏览器版本匹配,参考地址:https://blog.csdn.net/huilan_same/article/details/51896672
3. 解压后将exe文件放到python根目录下 D:\Python\Python36
标签:...,geckodriver,Selenium,配置,selenium,chromedriver,Python36,https 来源: https://www.cnblogs.com/p36606jp/p/15113455.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。