wkentaro / gdown

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

Cache Downloading #165

Closed Oyetomi closed 2 years ago

Oyetomi commented 2 years ago

First off , thank you for this tool, awesome work.

i'm trying to use cache download, i download the file a little quit the program then get the md5(from ./cache/gdown/) add it to my script, but when i restart the program it always created a new folder (doesn't validate the md5), not resuming the download

Screenshot 2022-03-13 at 3 31 31 PM

.

Screenshot 2022-03-13 at 3 34 56 PM
import gdown

url = 'url'
output = 'result.rar'

md5 = "dc8be83c78c531488f2587b4736b723a" #md5 from cached download in ./cache/gdown
gdown.cached_download(url, output,md5=md5,postprocess=gdown.extractall,fuzzy=True)