0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【1行野郎】最新の chromedriver をダウンロードする [2021/08/25確認済み]

Posted at

概要

2021/08/25 に動作確認済み.

https://chromedriver.storage.googleapis.com/<最新バージョン>/chromedriver_linux64.zip
にアクセスして、chromedriver_linux64.zip をダウンロードする

留意点

恐らく別途 xmllint のインストールが必要だと思う.

また、将来バージョン付与のルールが変更になったら、
下記 🛑 のソート条件を変更してやる必要がある.

コード

$ wget https://chromedriver.storage.googleapis.com/ -O - | \
   xmllint --format - --xpath="/ETag/Key/" | \
   grep -i linux64 | \
   sort -t'.' -k 1,1n 🛑| \
   sed -n '$s%<Key>\(.*\)</Key>%\1%p' | \
   xargs -I@ wget https://chromedriver.storage.googleapis.com/@ 

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?