Gdown

From Omnia
Jump to navigation Jump to search

Google Drive Python Download

Direct Download Python

pip install gdown
# gdown --id [ID]  # why specify --id??
gdown [ID]
gdown https://drive.google.com/uc?id=<file_id>  # for files
gdown <file_id>                                 # alternative format
gdown --folder https://drive.google.com/drive/folders/<file_id>  # for folders
gdown --folder --id <file_id>                                   # this format works for folders too

ref: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive/39225039#39225039