This script downloads Zoom recordings, and upload these files to specified Goolge Drive folder.
Enable Google Drive API via Google Cloud console, then place credentials file as credentials.json
.
- Go to the Google Cloud Console (https://console.cloud.google.com/).
- Click the "Select a project" drop-down list at the top of the screen and select the project you want to use.
- Click the navigation menu (≡) in the top-left corner of the screen, then select "APIs & Services" > "Library".
- Search for "Google Drive API" and click on it.
- Click the "Enable" button to enable the API.
- Once the API is enabled, click on "Credentials" in the left navigation menu.
- Click the "Create credentials" button and select "OAuth client ID".
- Select "Desktop app" or "Other non-UI" as the application type, then give your OAuth client ID a name.
- Click "Create" and follow the prompts to complete the OAuth client ID setup.
- After creating the OAuth client ID, you will be able to access the credentials page again and download the client ID and client secret for your application.
- Move the downloaded json file to the root folder of this application and named
credentials.json
.
- Go to the Zoom App Marketplace (https://marketplace.zoom.us/).
- Click the "Develop" dropdown menu in the top-right corner of the screen, then select "Build App".
- Select "OAuth" as the app type and click "Create".
- Enter a name for your app and Account-level app, click "Create".
- On the "App Credentials" page, you will find your "Client ID" and "Client Secret". Save this information as you will need this information later.
- In the "Redirect URL for OAuth" section, add
http://localhost:8080/
. - In the "Add allow lists" section, add
http://localhost:8080/
. - In the "Basic Information" section, add your app's description, logo, and other relevant details.
- In the "Feature" section, you don't need to select features.
- In the "Scopes" section, click
Add Scopes
and select the scopeView your recordings (recording:read)
. - Click "Save" to save your changes.
- Copy
zoom_credentials.json.example
aszoom_credentials.json
, then editYOUR_CLIENT_ID
andYOUR_CLIENT_SECRET
by the information obtained by step 5.
The tested python version is 3.10.6
Run
pip install -r requirements.txt
python save.py {googledrive_folder_id}
You can get the googledrive_folder_id from the Google Drive URL.
Example: https://drive.google.com/drive/u/1/folders/1N3xbtEKMhDsarV5PO-H-2argObRpsfdie3
In this case, The string starting from 1N3x
after /folders/
is the id.
At the first time, a default browser will open Google and Zoom authentication urls and ask OAuth permission.
If you don't want to specify Google Drive folder ID everytime, you can save the id on .env
file.
Please create .env file and set GOOGLE_DRIVE_FOLDER_ID
.
example:
echo "GOOGLE_DRIVE_FOLDER_ID='1N3xthDsarV5PO-H-2argO.....'" > .env
python save.py #<- this should work