Skip to content
Projekte

ricardorodrigues-ca/zoom-recording-downloader

Auf GitHub ansehen

Über uns

Downloads and organizes all cloud recordings from your Zoom Business account

Systeme und Infrastruktur

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Sponsors

Recall.ai - API for meeting recording

If you’re looking for a meeting recording API, consider checking out Recall.ai, an API that records Zoom, Google Meet, Microsoft Teams, In-person meetings, and more.


⚡️ zoom-recording-downloader ⚡️

☁️ Now with Google Drive support ☁️

Python 3.11 License

Zoom Recording Downloader is a cross-platform Python app that utilizes Zoom's API (v2) to download and organize all cloud recordings from a Zoom Business account to local storage or Google Drive.

Screenshot

screenshot

Installation

Attention: You will need Python 3.11 or greater

$ git clone https://github.com/ricardorodrigues-ca/zoom-recording-downloader
$ cd zoom-recording-downloader
$ pip3 install -r requirements.txt

Usage

Attention: You will need a Zoom Developer account in order to create a Server-to-Server OAuth app with the required credentials

  1. Create a server-to-server OAuth app, set up your app and collect your credentials (Account ID, Client ID, Client Secret). For questions on this, reference the docs on creating a server-to-server app. Make sure you activate the app. Follow Zoom's set up documentation or this video for a more complete walk through.

  2. Add the scopes for the download modes you intend to use in your app's Scopes tab, then activate (or reactivate) the app.

    Download mode Required granular scopes
    Cloud recordings (default) cloud_recording:read:list_user_recordings:admin, user:read:user:admin, user:read:list_users:admin
    Zoom Clips (--clips) clips:read:list_user_clips:admin, clips:read:download_clip:admin

    To use both modes, add all five scopes. The Clips scopes are read-only: one lists the Clip library and the other downloads a Clip MP4. They do not change or delete Clips.

  3. Copy zoom-recording-downloader.conf.template to a new file named zoom-recording-downloader.conf and fill in your Server-to-Server OAuth app credentials:

 "OAuth": {
	"account_id": "<ACCOUNT_ID>",
	"client_id": "<CLIENT_ID>",
	"client_secret": "<CLIENT_SECRET>"
	}
  1. You can optionally add other options to the configuration file:
  • Specify the base download_dir under which the recordings will be downloaded (default is 'downloads')
  • Specify the completed_log log file that will store the ID's of downloaded recordings (default is 'completed-downloads.log')
  • Specify the clips_dir under which Clips will be downloaded (default is 'downloads/clips')
  • Specify the completed_clips_log log file that stores IDs of downloaded Clips (default is 'completed-clips.log')
"Storage": {
        "download_dir": "downloads",
        "completed_log": "completed-downloads.log",
        "clips_dir": "downloads/clips",
        "completed_clips_log": "completed-clips.log"
        }
  • Specify the start_date from which to start downloading meetings (default is Jan 1 of this year)
  • Specify the end_date at which to stop downloading meetings (default is today)
  • Dates are specified as YYYY-MM-DD
"Recordings": {
        "start_date": "2024-01-01",
        "end_date": "2024-12-31"
        }
  • If you don't specify the start_date you can specify the year, month, and day seperately
  • Specify the day of the month to start as start_day (default is 1)
  • Specify the month to start as start_month (default is 1)
  • Specify the year to start as start_year (default is this year)
"Recordings": {
        "start_year": "2024",
        "start_month": "1",
        "start_day": "1"
        }
  • Specify the timezone for the saved meeting times saved in the filenames (default is 'UTC')
  • You can use any timezone supported by ZoneInfo
  • Specify the time format for the saved meeting times in the filenames (default is '%Y.%m.%d - %I.%M %p UTC')
  • You can use any of the strftime format codes supported by datetime
"Recordings": {
        "timezone": "America/New_York",
        "strftime": "%Y.%m.%d-%H.%M%z"
        }
  • Specify the format for the filenames of saved meetings (default is '{meeting_time} - {topic} - {rec_type} - {recording_id}.{file_extension}')
  • Specify the format for the folder name (under the download folder) for saved meetings (default is '{topic} - {meeting_time}')
"Recordings": {
        "filename": "{meeting_time}-{topic}-{rec_type}-{recording_id}.{file_extension}",
        "folder": "{year}/{month}/{meeting_time}-{topic}"
        }

For the previous formats you can use the following values

  • {file_extension} is the lowercase version of the file extension
  • {meeting_time} is the time in the format of strftime and timezone
  • {day} is the day from meeting_time
  • {month} is the month from meeting_time
  • {year} is the year from meeting_time
  • {recording_id} is the recording id from zoom
  • {rec_type} is the type of the recording
  • {topic} is the title of the zoom meeting

Command-Line Arguments

The script supports the following optional command-line arguments:

  • --skip-existing: Skip downloading files that already exist in the output directory. This is useful for resuming interrupted downloads or re-running the script without re-downloading existing files.

    $ python zoom-recording-downloader.py --skip-existing
    
  • --skip-users: Skip processing recordings for specific users by their email addresses. You can specify multiple users by providing multiple email addresses.

    $ python zoom-recording-downloader.py --skip-users [email protected] [email protected]
    

You can combine both arguments:

$ python zoom-recording-downloader.py --skip-existing --skip-users [email protected] [email protected]

Zoom Clips

To download Zoom Clips, add these scopes to your Server-to-Server OAuth app and reactivate it:

clips:read:list_user_clips:admin, clips:read:download_clip:admin

Then run the downloader in Clips mode. Clips are saved locally under downloads/clips by default, organized by year and month. A separate completed-clips.log makes this mode resumable.

$ python zoom-recording-downloader.py --clips --skip-existing

Optionally, set Storage.clips_dir in the configuration file to store Clips elsewhere.

Google Drive Setup (Optional)

To enable Google Drive upload support:

  1. Create a Google Cloud Project:

  2. Create OAuth 2.0 credentials:

    • In Cloud Console, go to "APIs & Services" > "Credentials"
    • Click "Create Credentials" > "OAuth client ID"
    • Choose "Desktop application" as the application type
    • Give it a name (e.g., "Zoom Recording Downloader")
    • Download the JSON file and save as client_secrets.json in the script directory
  3. Configure OAuth consent screen:

  4. Update your config:

    {
        "GoogleDrive": {
            "client_secrets_file": "client_secrets.json",
            "token_file": "token.json",
            "root_folder_name": "zoom-recording-downloader",
            "retry_delay": 5,
            "max_retries": 3,
            "failed_log": "failed-uploads.log"
        }
    }
    

Important: Keep your OAuth credentials file secure and never commit it to version control. Consider adding client_secrets.json to your .gitignore file.

Note: When you first run the script with Google Drive enabled, it will open your default browser for authentication. After authorizing the application, the token will be saved locally and reused for future runs.

  1. Run command:
$ python zoom-recording-downloader.py

When prompted, choose your preferred storage method:

  1. Local Storage - Saves recordings to your local machine
  2. Google Drive - Uploads recordings to your Google Drive account

Note: For Google Drive uploads, files are temporarily downloaded to local storage before being uploaded, then automatically deleted after successful upload.

Ähnliche Projekte entdecken

Wird geladen…