Shell/Bash: how download google drive file with wget Example

By

Shell/Bash Example: This is the "how download google drive file with wget" Example. compiled from many sources on the internet by SimpleTutorials.org

how download google drive file with wget

// Files smaller than 100MB
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME

// Files bigger than 100MB
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



* Summary: This "how download google drive file with wget" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others