最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Mac中安装phantomjs

Mac crifan 1384浏览 0评论
折腾:
【未解决】把某Mac中已爬取部分数据的PySpider项目移动到另一Mac电脑中继续爬取
期间,需要再去mac中安装phantomjs。
Mac phantomjs
在mac上安装PhantomJS – 简书
xxxdeMacBook-Pro:~ xxx$ brew update && brew install phantomjs
Already up-to-date.
Error: No available formula with the name "phantomjs"
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 phantomjs
xxxdeMacBook-Pro:~ xxx$ brew tap homebrew/cask
Updating Homebrew...
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4137, done.
remote: Counting objects: 100% (4137/4137), done.
remote: Compressing objects: 100% (4128/4128), done.
remote: Total 4137 (delta 27), reused 487 (delta 6), pack-reused 0
Receiving objects: 100% (4137/4137), 1.31 MiB | 209.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
Checking out files: 100% (4122/4122), done.
Tapped 1 command and 4039 casks (4,147 files, 4.2MB).
xxxdeMacBook-Pro:~ xxx$ brew cask install phantomjs
==> Caveats
phantomjs has been officially discontinued upstream.
It may stop working correctly (or at all) in recent versions of macOS.


==> Satisfying dependencies
==> Downloading 
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip
==> Downloading from 
https://bbuseruploads.s3.amazonaws.com/fd96ed93-2b32-46a7-9d2b-ecbc0988516a/downloads/8543ae7d-9ac7-43d3-9052-537d63f16d66/phantomjs
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'phantomjs'.
==> Installing Cask phantomjs
==> Linking Binary 'phantomjs' to '/usr/local/bin/phantomjs'.
🍺  phantomjs was successfully installed!
xxxdeMacBook-Pro:~ xxx$ which phantomjs
/usr/local/bin/phantomjs
xxxdeMacBook-Pro:~ xxx$ phantomjs --version
2.1.1
好像是可以了。
【总结】
此处是:
brew tap homebrew/cask
brew cask install phantomjs
即可安装出phantomjs。
此处版本是2.1.1

转载请注明:在路上 » 【已解决】Mac中安装phantomjs

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
91 queries in 0.936 seconds, using 22.10MB memory