Code Monkey home page Code Monkey logo

download-large-file-from-google-drive-using-python's Introduction

Download-Large-File-From-Google-Drive-Using-Python

This is a simple yet effective method to download LARGE files from google drive using Python I have only tried it with Python 3.6 I have NOT tried it with Folders instead of Files

I have only taken the python code in this stackoverflow answer and put it in a IPython Notebook

All you need to do is this:

  1. Get the file ID of your file on Google Drive (i.e. from the sharable link)
  2. Paste the file ID in file_id
  3. Specify the full path of where you want to save the downloaded file
  4. call the function download_file_from_google_drive(file_id, destination)

Example:

file_id = '0B6lEo20DNMISIJDSJDVBMENXbkE'
destination = '/home/myusername/work/myfile.ext'
download_file_from_google_drive(file_id, destination)

download-large-file-from-google-drive-using-python's People

Contributors

nsadawi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

download-large-file-from-google-drive-using-python's Issues

HTML object is downloaded

Hi!
I'm trying to download a .nii (nifti) volume from a Drive folder, but even if I specify

destination = '/my/path/volume.nii'

the downloaded file is a HTML object and not a nifti volume anymore.

What could I try?
Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.