Download unseen files from a folder in Google Drive
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neingeist 1f3f6669ef 📦 make it pip-installable 1 year ago
.gitignore 📦 make it pip-installable 1 year ago
README.md 📦 make it pip-installable 1 year ago
drive_download.py 📦 make it pip-installable 1 year ago
pyproject.toml 📦 make it pip-installable 1 year ago
requirements.txt initial commit 6 years ago
setup.cfg do the pep8 dance 6 years ago

README.md

Download unseen files from a folder in Google Drive

Example:

cd ~/Documents
drive-download scanbot

The script only downloads files it hasn't seen before.

Installation

Preferably in a Python virtualenv:

pip install ~/path/to/drive-download/

Configuring

  1. Get Google Drive API id and secret from the Google API console.
  2. Create and edit .config/drive-download/settings.yaml:
client_config_backend: settings
client_config:
  client_id: XXX.apps.googleusercontent.com
  client_secret: _s3cr3deadc4fef00baR

  save_credentials: True
  save_credentials_backend: file
  save_credentials_file: /home/USERNAME/.cache/drive-download/credentials.json