Mac安装Chromedriver

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ZuoWeiXiaoDuZuoZuo/article/details/89498886

Mac安装Chromedriver

Brew Install

在终端中输入

brew install chromedriver

可能会出现以下文字

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
.........此处省去一万行..........
Error: No available formula with the name "chromedriver" 
It was migrated from homebrew/core to homebrew/cask.
You can access it again by running:
  brew tap homebrew/cask
And then you can install it by running:
  brew cask install chromedriver

按照上面的提示 输入

brew cask install chromedriver

如果顺利会出现

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
cfn-lint

==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4113, done.
remote: Counting objects: 100% (4113/4113), done.
remote: Compressing objects: 100% (4101/4101), done.
remote: Total 4113 (delta 24), reused 853 (delta 10), pack-reused 0
Receiving objects: 100% (4113/4113), 1.32 MiB | 126.00 KiB/s, done.
Resolving deltas: 100% (24/24), done.
Checking out files: 100% (4094/4094), done.
Tapped 1 command and 4005 casks (4,119 files, 4.2MB).
==> Satisfying dependencies
==> Downloading https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_mac64.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'chromedriver'.
==> Installing Cask chromedriver
==> Linking Binary 'chromedriver' to '/usr/local/bin/chromedriver'.
🍺  chromedriver was successfully installed!

手动下载

查看你电脑上浏览器的版本:
D8F3CCC2-00C1-4E8B-8383-0BA944507CC5.png

相关链接

展开阅读全文

没有更多推荐了,返回首页