Skip to content

Python Script to download an mp3 file of any video on youtube and also a text file of lyrics if that is a song. This uses youtube-dl and BeautifulSoup for Scraping.

Notifications You must be signed in to change notification settings

gupta-meghna64/youtube_mp3_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

youtube_mp3_downloader

What is it ?

This is a python script which lets the user download the mp3 type audio file of any video of youtube. It also gives the user an option to download the lyrics in a text file if the video is a song. It makes it very easy for the user to download a video/song of his choice as it just asks the user to enter the name of the video.The results get better and more precise if the user specifies the name of the artist as well. Features -

  • Download mp3 (Type and quality of the file can be changed)
  • Get the video details
  • Download the lyrics as well

Libraries/Websites Used

This is a python script. The libraries used are -

  • requests
  • youtube-dl
  • Beautiful Soup

The websites used for Scraping are -

How to use it ?

Clone this project in any of your directory by running the following code:
git clone https://github.com/gupta-meghna64/youtube_mp3_downloader.git
Now, first install requests:
pip install requests
Install BeautifulSoup
pip install beautifulsoup4
Finally install youtube-dl
pip install youtube_dl
Windows users will also have to download ffprobe or avprobe incase this is not working in their systems.

After this extract the code and navigate to that directory in terminal and run the following command :
python youtubecrawl.py

This should work normally on Linux but may encounter some unwanted errors on windows due to missing softwares.

What next ?

I plan on developing a UI for this application on Flask and host it on the internet. The future changes will give the user more flexibility to change the video quality, file type and also selecting the video he wants. The changes will make the app more precise. I am also currently looking for a better website to scrape the lyrics.

About

Python Script to download an mp3 file of any video on youtube and also a text file of lyrics if that is a song. This uses youtube-dl and BeautifulSoup for Scraping.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages