gdown fetches publicly shared Google Drive files and folders when curl or wget fail on confirmation pages and awkward URLs. It also handles Docs exports and resume for large transfers.
Overview
Google Drive often intercepts large downloads with virus-scan confirmation HTML and non-obvious link patterns. gdown parses those flows so scripts and humans can retrieve files, recurse into folders, and export Google Docs, Sheets, and Slides to common office formats.
The CLI and Python API support partial download resume, optional speed limits, proxies, piping to stdout, and plain HTTP/HTTPS URLs as a simple curl replacement. Folder operations distinguish folder IDs from file IDs where required.
Authentication edge cases are documented for rate limits and permission errors, including optional browser cookie import for signed-in sessions. Linux, macOS, and Windows notes cover browser cookie storage differences.
Researchers and developers install gdown via pip or uv when automating dataset pulls, model weights, or shared documents from Drive without maintaining custom download scripts.
Key features
- Public Drive file download
- Recursive folder fetch
- Docs and Sheets export
- Resume partial downloads
- Generic HTTP URLs
- Browser cookie import
- CLI and Python API
- Configurable retries
Use cases
- Scripting Drive dataset downloads
- Bypassing Drive confirm pages
- Exporting Google Docs locally
- Replacing curl for Drive links