Skip to main content

Google Drive direct download of big files.

Project description

# gdown

[![PyPi Version](](
[![Travis Status](](

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.

## Installation

pip install gdown

## Usage

### From Command Line

$ # gdown [-h] [-V] [-O OUTPUT] [-q] [--id] url_or_id

$ # 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 = 'spam.txt', output, quiet=False)

## License


Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gdown-3.6.0.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Oct 23, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page