Skip to content

Given a list of songs, for each one, download the first result on youtube and convert it to mp3

License

Notifications You must be signed in to change notification settings

freetom/txt-to-mp3-youtube-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

txt-to-mp3-youtube-

Given a txt file, use the content of each line to make a search on Youtube, download the first result and convert it to mp3

Description

The script is a web scraper that given a search query for Youtube, fetch the link of the first video. Then the script gives the link to yt-dlp that downloads the video and convert it to mp3 (highest quality available) using ffmpeg. Always download the highest quality video available (to the maximum of 1080p)

Requirements

*nix system

Install python3, ffmpeg then: Download the latest version of yt-dlp and put the yt-dlp binary in a folder contained in your $PATH.

Usage

./run.sh input_playlist output_folder

And you'll get all the songs in list in different mp3 files in the output_folder

About

Given a list of songs, for each one, download the first result on youtube and convert it to mp3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published