The Playlist Downloader script automates the process of downloading tracks from playlists defined in JSON format. It uses yt-dlp to search and download tracks from YouTube, converting them to MP3 format for local playback.
Clone the repository:
git clone https://github.com/sagarsaud51/playlist-downloader.git
cd playlist-downloader
Install dependencies:
Ensure you have Python installed on your system. Then, install the required Python packages:
pip install -r requirements.txt
{
"playlist_name": "My Favorite Songs",
"songs": [
{
"artist": "Artist Name",
"track": "Track Name"
},
...
]
}
python download_file.py
The script will process each playlist, downloading and converting each track into an MP3 file, organized into folders by playlist name within the downloads directory.