Created
September 20, 2018 17:52
-
-
Save Davidnet/556e69aacb36231557a443fa6d679883 to your computer and use it in GitHub Desktop.
How to download large files from Google Drive
This file contains hidden or 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
#!/bin/bash | |
fileid="### file id ###" | |
filename="MyFile.csv" | |
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null | |
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment