Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download Google Drive files with WGET
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
wget -O file https://googledrive.com/host/[ID]
@xinzhel
Copy link

xinzhel commented Jun 11, 2021

Only this worked for a 68G file.

This works for me.

@tuongpgjz
Copy link

command for download any big file from google drive (for big file we need confirm download)
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

This worked for me by changing https://docs.google.com to https://drive.google.com

Yeah, it save my life!

@zihaozhang9
Copy link

zihaozhang9 commented Dec 20, 2021 via email

@zihaozhang9
Copy link

zihaozhang9 commented Jan 20, 2022 via email

@Johnqczhang
Copy link

Only this worked for a 68G file.

This works for a 188G file! Thanks a lot!

@luisnquin
Copy link

@beliys <3

@iolathief108
Copy link

@LL3RD Worked for me

@wangc39
Copy link

wangc39 commented Jun 21, 2022

Only this worked for a 68G file.

This works for a 3.3G file with a so fast speed. Thanks a lot!

@zihaozhang9
Copy link

zihaozhang9 commented Jun 21, 2022 via email

@bhosalems
Copy link

bhosalems commented Jul 18, 2022

How can I download the dataset here https://drive.google.com/drive/folders/0BweDykwS9vIoUG5nNGRjQmFLTGM?resourcekey=0-dHhRVxB0LDUcUVtASUIgTQ
I want to download Stanford3dDataset_v1.2.tar

@zihaozhang9
Copy link

zihaozhang9 commented Jul 18, 2022 via email

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