In this article, I will show how you can use python to download a YouTube video as audio in a matter of few seconds using python wrapper. youtube-dl Instead of using an online extension with accumulated ads like savenet, why not use your python skills to build your own downloader now. Requirements For you to be able to completely follow this tutorial, you're supposed to have installed on your machine. youtube-dl Installation pip install youtube_dl Basics of youtube-dl is a command-line tool for downloading videos from Youtube and other video sites, it provides a wrapper for python to directly use its functionality within code. youtube-dl provides a direct way to download the audio from Youtube by specifying the format of output we want for to next command which is downloading. YouTube-dl Downloading YouTube video as audio youtube_dl YoutubeDL audio_downloder = YoutubeDL({ : }) audio_downloader.extract_info(link to the video) from import 'format' 'bestaudio' That's how youtube-dl really makes our life easier, from the above concept you can build your own using your favorite framework ranging from to GUI YouTube downloader Tkinter PyQT Below is a sample command line app that runs an app for downloading YouTube-audio that runs on top youtube-dl, you can twist it the way you want it. app.py youtube_dl YoutubeDL audio_downloader = YoutubeDL({ : }) True: : print( .center( , )) URL = input( ) audio_downloader.extract_info(URL) except Exception: print( ) : option = int(input( )) option!= : from import 'format' 'bestaudio' while try 'Youtube Downloader' 40 '_' 'Enter youtube url : ' "Couldn\'t download the audio" finally '\n1.download again \n2.Exit\n\nOption here :' if 1 break When you run the above code it will automatically begin downloading the audio from the YouTube video link you provided If available. Well that's the end of our tutorial, Follow me on Twiter I recommend you to also read this ; How to track phone number in Python How to extract all links from a website using Python How to remove duplicates on your drive using Python How to make your own website blocker in Python How to make your own knowledge-based chatbot in Python How to build a realtime barcode reader in Python In case of any suggestion or comment, drop it in the comment box and I will get back to you ASAP Previously published at https://kalebujordan.com/build-python-youtube-audio-downloader/