wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.16k stars 345 forks source link

Downloaded file incomplete #163

Closed giswqs closed 2 years ago

giswqs commented 2 years ago

I am trying to download a 52 MB zip file from here, but the downloaded file is only 66.7 KB.

import gdown
url = "https://drive.google.com/file/d/1tDwDAV7IabTYMwGSO4Syy_NHZpTsh9Lo"
output = "madison.zip"
gdown.download(url, output, quiet=False)
giswqs commented 2 years ago

Using the id method works. Not sure why the above url method is not working.

id = "1tDwDAV7IabTYMwGSO4Syy_NHZpTsh9Lo"
gdown.download(id=id, output=output, quiet=False)
giswqs commented 2 years ago

Adding the fuzzy param solves the issue.

url = "https://drive.google.com/file/d/1tDwDAV7IabTYMwGSO4Syy_NHZpTsh9Lo/view?usp=sharing"
gdown.download(url=url, output=output, quiet=False, fuzzy=True)