Skip to content

Instantly share code, notes, and snippets.

@e96031413
Created July 27, 2020 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e96031413/e5df14151b33678e490b37998afb288f to your computer and use it in GitHub Desktop.
Save e96031413/e5df14151b33678e490b37998afb288f to your computer and use it in GitHub Desktop.
Download Google Drive Files From Linux Server
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