You can use the setup_google_drive.py Python script to automatically set up a
Google Drive for your event. First, install the required dependencies using:
python -m pip install -r requirements.txtThen, run the script using:
python setup_google_drive.py NAME_OF_YOUR_EVENTwhere NAME_OF_YOUR_EVENT is the name of your event. This will ask you to log
into your Google account, then it will use these permissions to create a new
folder (called NAME_OF_YOUR_EVENT) with the template structure in it. By
default, this will use this public
template.
You can override this choice by passing a Google Drive ID to the --template
argument of the setup_google_drive.py script (instead of the default
1nLYIP41PKy_rQbCNNvR3QwVk6EYSccj1).
You'll need to create a secrets/google.json file with your Google Drive client
secret. To set this up:
- Go to your Google developer console,
- Create a new project and enable the Google Drive API,
- Go to the Credentials
page and click "Create
Credentials" > "OAuth client ID" (enabling the following scopes:
drive.fileanddrive.readonly), and - Download the JSON file and save it as
secrets/google.json.