Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 803 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 803 Bytes

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