Skip to content

Instantly share code, notes, and snippets.

@olidroide
Created July 4, 2018 08:58
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 olidroide/fe40fcab720f622f160017ebea38f867 to your computer and use it in GitHub Desktop.
Save olidroide/fe40fcab720f622f160017ebea38f867 to your computer and use it in GitHub Desktop.
wget Google Drive File
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
@olidroide
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment