Skip to content

Instantly share code, notes, and snippets.

@afspies
Created August 9, 2021 19:06
Show Gist options
  • Save afspies/bc566174fe5a12ca9f8b19796bab744b to your computer and use it in GitHub Desktop.
Save afspies/bc566174fe5a12ca9f8b19796bab744b to your computer and use it in GitHub Desktop.
Google Drive Download
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=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment