前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Selenium模块的安装

Selenium模块的安装

作者头像
小小咸鱼YwY
发布2019-09-11 10:13:10
8690
发布2019-09-11 10:13:10
举报
文章被收录于专栏:python-爬虫

Selenium模块

1.安装selenium

  • python2:pip install selenium
  • python3:pip install selenium

2.设置浏览器驱动

解压后必须与浏览器的exe放置于同一文件夹中

浏览器

驱动

Chrome:

https://sites.google.com/a/chromium.org/chromedriver/downloads

Edge:

https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

Firefox:

https://github.com/mozilla/geckodriver/releases

Safari:

https://webkit.org/blog/6900/webdriver-support-in-safari-10/

Google Chrome 稳定版 离线安装包 官方本地下载地址:

Google Chrome v75.0.3770.90 无更新功能版 64位

SHA1:4BD8278A9D89D3790F201D4EDA02D31B2F9886FB

SHA256:B578B4E4E186505D5D3E156857BBDF72B19C01BAF50651A5C33544D75BA36824

http://dl.google.com/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://dl.google.com/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://www.google.com/dl/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://www.google.com/dl/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://redirector.gvt1.com/edgedl/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://redirector.gvt1.com/edgedl/release2/chrome/XAlboe3DWkM_75.0.3770.90/75.0.3770.90_chrome_installer.exe

Google Chrome v75.0.3770.90 无更新功能版 32位

SHA1:BA586E1DB8806375AB5FB1844D2A8FAA10993FAC

SHA256:C3DFE179F2EC20266CEB8AF98EBBB19C884952062EEA0A913821A48C645642DD

http://dl.google.com/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://dl.google.com/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://www.google.com/dl/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://www.google.com/dl/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://redirector.gvt1.com/edgedl/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://redirector.gvt1.com/edgedl/release2/chrome/AN_q_RfOOOCt_75.0.3770.90/75.0.3770.90_chrome_installer.exe

Google Chrome v75.0.3770.90 Mac版

SHA1:37182A996912013F3796681E2F604B31CBC685FC

SHA256:5AEED86A65C110132DD32EEBC5D5D79C68538973BE2EFFA55C382E00DCE1898D

http://dl.google.com/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

https://dl.google.com/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

http://www.google.com/dl/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

https://www.google.com/dl/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

http://redirector.gvt1.com/edgedl/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

https://redirector.gvt1.com/edgedl/release2/chrome/IpECbnDgvT8_75.0.3770.90/GoogleChrome-75.0.3770.90.dmg

Google Chrome 官方带更新功能版 网盘:

https://www.lanzous.com/b138066

Google Chrome v75.0.3770.90驱动:https://chromedriver.storage.googleapis.com/index.html?path=75.0.3770.90/

3.碰到的问题

  • Chrome 浏览器默认安装c盘,会因为权限不够没法进行访问,这时候我们需要把整个文件夹移出C盘
  • 驱动必须和浏览器版本匹配且位置放置于浏览器exe文件的同目录下
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-07-23 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Selenium模块
    • 1.安装selenium
      • 2.设置浏览器驱动
        • 3.碰到的问题
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档