diff --git a/.readme/cli.png b/.readme/cli.png index 81008247..a2a50993 100644 Binary files a/.readme/cli.png and b/.readme/cli.png differ diff --git a/.readme/python.png b/.readme/python.png index c108be39..bbbbe8ae 100644 Binary files a/.readme/python.png and b/.readme/python.png differ diff --git a/README.md b/README.md index 9ffdc8b6..6f964120 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

gdown

Google Drive Public File/Folder Downloader

- - + +

@@ -86,27 +86,28 @@ import gdown # a file url = "https://drive.google.com/uc?id=1l_5RK28JRL19wpT22B-DY9We3TVXnnQQ" output = "fcn8s_from_caffe.npz" -gdown.download(url, output, quiet=False) +gdown.download(url, output) # same as the above, but with the file ID id = "0B9P1L--7Wd2vNm9zMTJWOGxobkU" -gdown.download(id=id, output=output, quiet=False) +gdown.download(id=id, output=output) # same as the above, and you can copy-and-paste a URL from Google Drive with fuzzy=True url = "https://drive.google.com/file/d/0B9P1L--7Wd2vNm9zMTJWOGxobkU/view?usp=sharing" -gdown.download(url=url, output=output, quiet=False, fuzzy=True) +gdown.download(url=url, output=output, fuzzy=True) -# cached download with identity check via MD5 -md5 = "fa837a88f0c40c513d975104edf3da17" -gdown.cached_download(url, output, md5=md5, postprocess=gdown.extractall) +# Cached download with identity check via MD5 (or SHA1, SHA256, etc). +# Pass postprocess function e.g., extracting compressed file. +md5 = "md5:fa837a88f0c40c513d975104edf3da17" +gdown.cached_download(url, output, hash=hash, postprocess=gdown.extractall) # a folder url = "https://drive.google.com/drive/folders/15uNXeRBIhVvZJIhL4yTw4IsStMhUaaxl" -gdown.download_folder(url, quiet=True, use_cookies=False) +gdown.download_folder(url) # same as the above, but with the folder ID id = "15uNXeRBIhVvZJIhL4yTw4IsStMhUaaxl" -gdown.download_folder(id=id, quiet=True, use_cookies=False) +gdown.download_folder(id=id) ```