
Click’s three main points of interest are arbitrary command nesting, automatic help page generation, and lazy loading for subcommands at runtime. Click is a Python library, short for “command line interface creation kit”. The last prerequisite to install is Click. Open up ~/.zshrc with whatever text editor you’d like, I just run If you’re an OSX user, you’ll want to go to the site and download the binaries, and then add the location where you’ve downloaded them to to your PATH variable.

Later we’ll add an option to the request we send youtube_dl that will tell it where to find the program. For the purposes of this tutorial, I copied it to the same folder that I am running the python program from. Copy each executable file to a folder and make sure you know where that folder is. You’ll see an executable file for each of the three ffbinaries we need, ffmpeg, ffprobe, and ffplay. If you’re a Windows user what you’ll want to do is download the binaries and unzip the files. First, we’re going to download the binaries from This part is different for Windows and OSX users. We’ll be using this in conjunction with youtube-dl to convert the video we download into an audio file. FFmpeg is an open source and free software for handling, video, audio, and other multimedia files. There's multiple ways to do this, but I suggest using pip pip install youtube_dl Youtube-dl is an open source library for easily downloading youtube videos. Next we'll have to download youtube-dl for Python.

To get an AssemblyAI API key, visit AssemblyAI and sign up, you'll see your API key clearly displayed, I've circled where it should be in the picture. We’ll use the AssemblyAI API to transcribe the YouTube videos we download.

You'll need:ĪssemblyAI is an API for fast, automatic speech to text conversion. I'm going to show you how to build a command line tool that will download a video from a YouTube link and extract the transcription for you via AssemblyAI in Python 3. Today I’ll show you an amazing way to get around this problem by getting the transcript of the video via AssemblyAI’s transcription API. A lot of times I also had to stop and rewind and replay multiple times to take notes because it was going too fast. Have you ever needed to take notes from a YouTube video lecture? Back in college I totally had some hard classes where I had to use a lot of YouTube University and take notes from some YouTube video I found.
