Featured image of post Using yt-dlp With Zoom

Using yt-dlp With Zoom

Bash script for usage of yt-dlp with Zoom.

Introduction

If anyone uses Zoom to record and later wants to access recordings of video calls, here’s a simple linux bash script to download the video file and acompanying subtitles. For a long time I used zoomdl, but it is no longer under active development, and I began running into various issues about a year ago.

This tutorial requires you to have a “cookies” text file, which needs to contain the cookies export in the Netscape HTTP format of the Zoom cookies after logging in.

Here’s the steps to setting this up:

Install the cookie editor extension. I personnally use it with Microsoft Edge, but there are similar extensions for Chrome, Firefox, etc.

Modify export format

Change the preferred cookie export format to Netscape HTTP Cookie File in the extension options. It is necessary to export in this format, otherwise yt-dlp will not be able to read the cookies.txt file correctly.

Modify preferred export format

Log in to Zoom

Log in to Zoom in your browser. Be sure to remain logged in while exporting the cookies under step 4.

Export cookies

The export button is at the top fo the window. It copies the cookies to your clipboard, which then need to be pasted into a text file (I have my saved as cookies.txt), which yt-dlp will then read when it executes.

Export cookies

Create bash script

Save the following code to a text file (my bash script file name is yt-dlp-zoom.sh):

1
2
3
4
5
6
#!/bin/bash
echo What is the link?

read link

yt-dlp --referer "https://zoom.us/" --cookies /path/to/cookies/file/cookies.txt -o "%(title)s-%(id)s.%(ext)s" --write-subs $link

Change permissions

Modify the permissions of the bash script to allow execution:

$ chmod +x yt-dlp-zoom.sh

Execute the script

Execute the bash script with ./yt-dlp-zoom.sh, copy and paste the link to the video that you would like to save, and it should download the video and the subtitles.

References

References for yt-dlp (and used for above):

https://ostechnix.com/yt-dlp-tutorial/

Licensed under CC BY-NC-SA 4.0
Last updated on December 10, 2023
Built with Hugo
Theme Stack designed by Jimmy