Forked from iamtekeste/Download Google Drive files with WGET
Last active
August 22, 2020 05:34
-
-
Save mtx-z/cc8abd093c725f122609ddc5b69f53a1 to your computer and use it in GitHub Desktop.
Download Google Drive files with WGET
This file contains 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
Download Google Drive files with WGET | |
- replace FILEID with your Google Drive FILEID | |
- Google Drive file must have a public shared URL (file share options) | |
- will create a /tmp/cookies.txt to save cookies, and handle Google Drive "Big files" download verification | |
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
Credit :
https://gist.github.com/iamtekeste/3cdfd0366ebfd2c0d805
@beliys comment