Download Google Drive folder and files.
Repository basead on google-drive-folder-downloader
You need to enable the Drive API to use the script.
The enabling instructions can be found on Python Quickstart.
The credentials.json
file will be needed in the working directory.
$ cd src/
# Create virtual env to project on src folder
$ python -m venv gdrive_downloader_env
# Activate virtualenv
$ source gdrive_downloader_env/bin/activate
# Deactivate virtualenv
$ pip install -r requirements.txt --upgrade
Just run the script with gdrive target folder name and the output path (optional, default value is ./
) where you want to save to.
$ python3 gdrive_downloader.py gdrive_folder_name [output_path]