Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Created January 7, 2020 13:36
Show Gist options
  • Save robin-scott/3fbb06a7ce958e5107e9bd0e1d7475e4 to your computer and use it in GitHub Desktop.
Save robin-scott/3fbb06a7ce958e5107e9bd0e1d7475e4 to your computer and use it in GitHub Desktop.
Wget command for large files collection from Google Drive
// Use the below to wget in large files (over 100MB) from Google Drive. Added by Robin Scott of SiliconDales.com. See full instructions at https://silicondales.com/tutorials/g-suite/how-to-wget-files-from-google-drive/
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILE_ID" -O FILE_NAME && rm -rf /tmp/cookies.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment