Last active
January 1, 2022 04:43
-
-
Save kanekomasahiro/eec63d4832bab4084e652819939f13f6 to your computer and use it in GitHub Desktop.
google driveから大きいファイルをダウンロードする.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 共有可能なリンクを取得からFILE_IDを取得する | |
FILE_ID=1uoAReQK3f5g9CEy8rV4haSzXll8NqVHW | |
FILE_NAME=gfm-models.zip | |
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${FILE_ID}" > /dev/null | |
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)" | |
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=${FILE_ID}" -o ${FILE_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment