Skip to content

This is a song downloader made in Python. This script can download songs from YouTube in the mp3 format.


Notifications You must be signed in to change notification settings



Folders and files

Last commit message
Last commit date

Latest commit



11 Commits

Repository files navigation

Youtube Song Downloader

Youtube Song Downloader 0.3 by Palash Sureka and modified by Brian Leek.


This is a song downloader made in Python. Have you ever wanted to download a song for your phone, class, zumba / yoga or anything else? Guess what, this script has you covered!

The modifications I made to this script is making it run with just one file and ask the user for the song name and creates the "songs.txt" file for you and deletes it after the script finishes. All the user needs to do is run the script and enter the song name and the script handles the rest. It's better then editing the songs file and running two different Python files.


*Important Note: Chromewebdriver path must be set in where it says "DriverPath".

Run then the script will ask you for the song you would like to download and then the magic will happen. Then a few things will happen:

  1. A new tab will open in Chrome.
  2. It will go to and copy the link of the first result.
  3. Then it will got to, paste the link and download the file.

That's it! It isn't the fastest method or the best but it works.


Enabling Headless Mode

By enabling headless mode you can run the script in the background well your doing other things with no broswer window in the way. To enable headless mode just open and find Headless = False and change it to True.

Move Downloaded Files

By setting MoveDownloadedFile to True in allows the script to move all files downloaded to your default downloads folder and move all files that end in .mp3 to another folder that you set. Open and make sure you set the path to your default downloads folder in DownloadFolderPath and the path where you want to move the files in MoveDownloadPath. Thats it! The next time the script runs it should move the files.



  • Code improvements
  • Added a file
  • Option to enable headless mode
  • Option to move downloaded songs


  • Code improvements
  • Merge 2 files into 1.


  • initial release


If you would like to contribute to this project in any way, feel free too. You will be credited for any work you do. Please make sure to test your code before submitting it. Thanks!

I did not create this script it was created by Palash Sureka which can be found here.


This is a song downloader made in Python. This script can download songs from YouTube in the mp3 format.







  • Python 100.0%