Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Google Drive direct download of big files.

Project description


Download a large file from Google Drive.


Download a large file from Google Drive.
If you use curl/wget, it fails with a large file because of the security warning from Google Drive.


pip install gdown


From Command Line

$ gdown --help
usage: gdown [-h] [-V] [-O OUTPUT] [-q] [--id] [--proxy PROXY] [--speed SPEED]

$ # a large file (~400MB)
$ gdown
$ # gdown --id 0B_NiLAzvehC9R2stRmQyM3ZiVjQ
$ md5sum pose_estimation_2d_chainermodel.pkl

$ # a small file
$ gdown
$ cat spam.txt

$ # as an alternative to curl/wget
$ gdown -O ip.json
$ cat ip.json
  "origin": ""

$ # write stdout and pipe to extract
$ gdown -O - --quiet | tar zxvf -
$ ls 20150428_collected_images/

$ # it can handle urls created from [Share] -> [Copy Url] on Google Drive
$ gdown ''

From Python

import gdown

url = ''
output = '20150428_collected_images.tgz', output, quiet=False)

md5 = 'fa837a88f0c40c513d975104edf3da17'
gdown.cached_download(url, output, md5=md5, postprocess=gdown.extractall)



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gdown, version 3.13.0
Filename, size File type Python version Upload date Hashes
Filename, size gdown-3.13.0.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page