-
-
Save joppichristian/2f32bd40e5088537559cc8ed64410d47 to your computer and use it in GitHub Desktop.
Download Google Drive Files using wget
This file contains hidden or 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
#https://medium.com/@acpanjan/download-google-drive-files-using-wget-3c2c025a8b99 | |
# change FILEID | |
# https://drive.google.com/file/d/1UibyVC_C2hoT_XEw15gPEwPW4yFyJFeOEA | |
# FILEID = 1UibyVC_C2hoT_XEw15gPEwPW4yFyJFeOEA | |
# tools | |
https://gdrive-wget.glitch.me/ | |
# small file | |
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME | |
# large 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment