LinuxCommandLibrary

gdown

TLDR

Download from Google Drive

$ gdown [https://drive.google.com/uc?id=FILE_ID]
copy
Download by ID
$ gdown [file_id]
copy
Download folder
$ gdown --folder [https://drive.google.com/drive/folders/FOLDER_ID]
copy
Output to file
$ gdown [file_id] -O [output.zip]
copy
Fuzzy search
$ gdown --fuzzy [https://drive.google.com/...]
copy

SYNOPSIS

gdown [options] urlorid

DESCRIPTION

gdown downloads files from Google Drive via command line. It handles the authentication and download process automatically, including large files that normally require confirmation.
The tool extracts file IDs from various Google Drive URL formats. It supports downloading individual files and complete folders.
gdown is commonly used for downloading datasets and models shared via Google Drive.

PARAMETERS

URLORID

Google Drive URL or file ID.
-O FILE, --output FILE
Output filename.
--folder
Download entire folder.
--fuzzy
Enable fuzzy URL extraction.
-q, --quiet
Suppress output.
--help
Display help information.

CAVEATS

Rate limits may apply. Large downloads may fail. Some files require permission. Cannot download private files without authentication.

HISTORY

gdown was created to simplify Google Drive downloads, particularly for machine learning datasets. It provides wget/curl-like functionality for Drive URLs.

SEE ALSO

wget(1), curl(1), gdrive(1)

Copied to clipboard