Download from Google Drive using wget in Linux

By default, Google Drive does not allow plain wget commands (e.g. wget google-drive-link) in Linux. The workaround is to use the following syntax:

For example, to download the file from the Google Drive link below:

You can use the following wget command in Linux. Note that you have to enter the google drive file id twice and also enter the file name.
wget --load-cookies /tmp/cookies.txt "$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate '' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1vzHBVXvpF0dFKaDamJ6THg-0Gc-cSDoR" -O && rm -rf /tmp/cookies.txt

Thanks to this website below for the idea:

Leave a Comment

Please answer question below to verify that you are a real person *