【笔记】chromedriver下载与安装方法

🎈欢迎加群交流🎈
✨✨✨https://ling71.cn/hmf.jpg✨✨✨

不定时更新
2024-04-17 更新 云盘增加 123.0.6312.122 (r1262506)版本
百度网盘链接:https://pan.baidu.com/s/1yk6js4yz_NBzXAp71ZIOzA?pwd=2vo3 提取码:2vo3
2024-04-17 更新 增加 123.0.6312.122 (r1262506) 版本chromedriver下载链接
最新版本链接:https://googlechromelabs.github.io/chrome-for-testing/


当需要进行自动化测试或爬取网页数据时,Chrome浏览器的驱动程序(ChromeDriver)是一个关键组件。它允许控制和与Chrome浏览器进行交互。在本文中,将为介绍如何下载和安装ChromeDriver。

什么是ChromeDriver

ChromeDriver是一个用于自动化控制和与Google Chrome浏览器进行交互的驱动程序。它是Chrome浏览器的一个开源项目,由Chrome开发团队开发和维护。

ChromeDriver允许开发人员使用编程语言(如Python、Java、C#等)编写脚本,以控制Chrome浏览器的行为。通过ChromeDriver,您可以模拟用户在浏览器中执行的各种操作,例如打开网页、填写表单、点击按钮、滚动页面等。这使得自动化测试和网页数据爬取变得更加简单和高效。

ChromeDriver与特定版本的Chrome浏览器相对应,因此在使用ChromeDriver之前,您需要确保安装与您当前使用的Chrome浏览器版本相匹配的ChromeDriver版本。这样可以确保ChromeDriver能够与浏览器正确地进行通信和控制。

ChromeDriver在自动化测试、网页爬虫、网页截图、性能测试等领域被广泛使用。它为开发人员提供了一种方便的方式来控制和管理Chrome浏览器,以实现各种自动化任务。

需要注意的是,安装和使用ChromeDriver需要一定的技术知识和编程经验。但一旦掌握了基本的使用方法,您就可以充分利用ChromeDriver的功能,提高开发和测试效率。

下载与安装

setp1:查看Chrome浏览器版本

首先,需要检查Chrome浏览器的版本。请按照以下步骤进行:

  1. 打开Chrome浏览器。
  2. 点击浏览器右上角的菜单图标(三个垂直点)。
  3. 选择“帮助”(Help)。
  4. 在下拉菜单中选择“关于Google Chrome”(About Google Chrome)。
    请添加图片描述

这将打开一个新的标签页,显示当前安装的Chrome浏览器的版本号。请记下这个版本号,因为需要确保下载与Chrome浏览器版本相匹配的ChromeDriver。

在这里插入图片描述

step2:下载ChromeDriver

知道了Chrome浏览器的版本号,就可以开始下载相应版本的ChromeDriver了。请按照以下步骤进行:

  1. ChromeDriver下载页面:

淘宝镜像:https://registry.npmmirror.com/binary.html?path=chromedriver/

官方镜像:https://sites.google.com/a/chromium.org/chromedriver/downloads

  1. 在下载页面上,将看到一列Chrome浏览器的版本号和相应的ChromeDriver版本号。
  2. 找到与Chrome浏览器版本号相匹配的ChromeDriver版本,并点击下载链接。

请注意,ChromeDriver的下载文件是一个压缩文件,根据操作系统,选择适当的下载文件。

在这里插入图片描述

115以上版本下载看末尾表格

step3:安装ChromeDriver

完成了ChromeDriver的下载,接下来将其解压缩并将其添加到系统的PATH环境变量中。请按照以下步骤进行:

  1. 将下载的ChromeDriver压缩文件解压缩到浏览器的安装目录下:C:\Program Files (x86)\Google\Chrome\Application

    (要根据自己实际安装目录)
    在这里插入图片描述

在这里插入图片描述

  1. 在操作系统中,找到系统的环境变量设置。

    以下是几个常见操作系统的环境变量设置位置:

    • Windows:控制面板 -> 系统和安全 -> 系统 -> 高级系统设置 -> 环境变量。
    • macOS:在终端中输入“nano ~/.bash_profile”来编辑bash profile文件。
    • Linux:在终端中输入“nano ~/.bashrc”来编辑bashrc文件。
  2. 在环境变量设置中,找到名为“PATH”的变量,并在其值中添加ChromeDriver的路径。例如,如果将ChromeDriver解压缩到“C:\chromedriver”(Windows)或“/usr/local/bin/chromedriver”(macOS / Linux),则需要将该路径添加到PATH变量中。

在这里插入图片描述

保存并关闭环境变量设置文件后,请确保重启终端或命令提示符窗口,以使环境变量更改生效。

step4:验证安装

安装完成后,可以验证ChromeDriver是否正确安装并可用。请按照以下步骤进行:

  1. 打开终端或命令提示符窗口。
  2. 输入“chromedriver”(macOS / Linux)或“chromedriver.exe”(Windows)。
  3. 如果安装成功,将看到ChromeDriver的版本信息以及其他一些输出。

在这里插入图片描述

这意味着已成功安装ChromeDriver,并且它已添加到系统的PATH环境变量中。

总结

通过遵循以上步骤,可以轻松下载和安装ChromeDriver。请记住,确保下载与Chrome浏览器版本匹配的ChromeDriver,并将其正确添加到系统的PATH环境变量中。

希望本文对有所帮助,并让顺利使用ChromeDriver进行自动化测试和网页数据爬取。祝成功!在这里插入图片描述

更新时间: 2023-09-23T21:08:06.344Z

version : 115.0.5790.170

milestone : 115
revision : 1148114

chrome

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chrome-win64.zip

chromedriver

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chromedriver-win64.zip

version : 116.0.5845.96

milestone : 116
revision : 1160321

chrome

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chrome-win64.zip

chromedriver

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip

version : 117.0.5938.92

milestone : 117
revision : 1181205

chrome

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/win64/chrome-win64.zip

chromedriver

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.92/win64/chromedriver-win64.zip

version : 118.0.5993.18

milestone : 118
revision : 1192594

chrome

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win64/chrome-win64.zip

chromedriver

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win64/chromedriver-win64.zip

chrome-headless-shell

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/linux64/chrome-headless-shell-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-arm64/chrome-headless-shell-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/mac-x64/chrome-headless-shell-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win32/chrome-headless-shell-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.18/win64/chrome-headless-shell-win64.zip

version : 119.0.6026.0

milestone : 119
revision : 1200638

chrome

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win64/chrome-win64.zip

chromedriver

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win64/chromedriver-win64.zip

chrome-headless-shell

平台下载链接
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/linux64/chrome-headless-shell-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-arm64/chrome-headless-shell-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/mac-x64/chrome-headless-shell-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win32/chrome-headless-shell-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6026.0/win64/chrome-headless-shell-win64.zip

Version: 119.0.6045.105 (r1204232)

linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/mac-arm64/chrome-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/mac-x64/chrome-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/win32/chrome-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/win64/chrome-win64.zip
linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/win64/chromedriver-win64.zip

version: 119.0.6045.159 (r1204232)

linux64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.159/linux64/chromedriver-linux64.zip
mac-arm64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.159/mac-arm64/chromedriver-mac-arm64.zip
mac-x64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.159/mac-x64/chromedriver-mac-x64.zip
win32https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.159/win32/chromedriver-win32.zip
win64https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.159/win64/chromedriver-win64.zip

version: 123.0.6312.122 (r1262506)

BinaryPlatformURL
chromelinux64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chrome-linux64.zip
chromemac-arm64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/mac-arm64/chrome-mac-arm64.zip
chromemac-x64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/mac-x64/chrome-mac-x64.zip
chromewin32https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/win32/chrome-win32.zip
chromewin64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/win64/chrome-win64.zip
chromedriverlinux64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chromedriver-linux64.zip
chromedrivermac-arm64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/mac-arm64/chromedriver-mac-arm64.zip
chromedrivermac-x64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/mac-x64/chromedriver-mac-x64.zip
chromedriverwin32https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/win32/chromedriver-win32.zip
chromedriverwin64https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/win64/chromedriver-win64.zip

最新版本链接:https://googlechromelabs.github.io/chrome-for-testing/

在这里插入图片描述

  • 236
    点赞
  • 742
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 102
    评论
评论 102
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

逸峰轻云

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值