

Our YouTube download video function is going to specify the format that it wants the video in (mp4) and an output template that tells youtube-dl the way it wants the file saved.

When we’re done, it should look like this: The first thing we’ll need to do is make a download video function which will download the YouTube video from a link we pass to it as a. """A CLI for getting transcriptions of YouTube videos""" An important note, all of your commands should go in-between the definition of apis() and the definition of main(). Before we get into creating our actual commands, we have to initialize our CLI. We’ll create two commands, one to download audio only, and one to download videos. PATH=”/usr/local/bin:$PATH” YouTube Downloader App Creation 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.
#Youtunes downloader install#
After these two libraries are done installing, we’re going to want to install FFmpeg, FFprobe, and FFplay. Since youtube-dl and click are both Python libraries, we can install both at the same time with pip: pip install youtube-dl click What libraries/softwares will we need to download/configure?īefore we can build our YouTube video and audio downloader, we have to download and configure our libraries. You can find the source code here Prerequisities

#Youtunes downloader how to#
Have you ever wanted to download the audio from a YouTube video? In this tutorial, I'm going to show you how to build your own free YouTube video downloader app.
