esx2ve / Google-Drive-Download

Python scripts to download folders and files from google drive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google-Drive-Download <<<<<<< HEAD Python scripts to download folders and files from google drive

Pre-requisites - Authorize API usage on google drive, and download/install google drive pyhton api. sudo pip install -I google-api-python-client==1.3.2 --ignore-installed six Authorize API https://developers.google.com/drive/v3/web/quickstart/python#step_1_turn_on_the_api_name Download the client_secret.json to same dir as this script Made for Python 3.5 and Google Drive API v3.

Made for Python 3.5 and Google Drive API v3. Python scripts to download folders and files from google drive. I had to create this to solve a simple problem: download the whole folder structure and files shared with me on Google Drive (more than 200 files, totaling aprox 10Gbytes). I was unable to synchronize that folder structure using the Google Drive application for Windows, and also to download from the web interface, because Google Drive Web tryed to compress everything before downloading - and got lost with such a big set of files.

Pre-requisites - Authorize API usage on google drive, and download/install google drive pyhton api. Follow instructions on : https://developers.google.com/drive/v3/web/quickstart/python To install python client on windows: pip install --upgrade google-api-python-client Authorize API https://developers.google.com/drive/v3/web/quickstart/python#step_1_turn_on_the_api_name Download the client_secret.json to same dir as this script

origin/master

Usage: to replicate a Gogle Drive folder structure with all files, in your computer python dl_gdrive_folder.py Example: Folder Structure at Google Drive: F1 File0 F11 File1 F12 F211 FileA FileB To download everything from folder F211 to a local folder TST python dl_gdrive_folder.py F211 TST

<<<<<<< HEAD

It doesn´t work if you have more than one folder with the same name.

origin/master

Build from the works of : Mark Culhane - google_drive_backup.py https://github.com/markz0r/tools/blob/master/backup_scripts/google_drive_backup.py and HatsuneMiku - recursive navigation over folders http://stackoverflow.com/questions/22092402/python-google-drive-api-list-the-entire-drive-file-tree https://github.com/HatsuneMiku/googleDriveAccess

<<<<<<< HEAD

=======

origin/master

About

Python scripts to download folders and files from google drive


Languages

Language:Python 100.0%