broncholasso / spotify_playlist_downloader

This Python script allows you to convert your Spotify playlist to a collection of MP3 files effortlessly. It utilizes the Spotify API to fetch track names and searches for corresponding YouTube videos using yt_dlp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

                              # #### ####
                            ### \/#|### |/####
                           ##\/#/ \||/##/_/##/_#
                         ###  \/###|/ \/ # ###
                       ##_\_#\_\## | #/###_/_####
                      ## #### # \ #| /  #### ##/##
                       __#_--###`  |{,###---###-~
                                 \ }{
                                  }}{
                                  }}{
                                  {{}
                            , -=-~{ .-^- _
                                  }

                        SPOTIFY MUSIC DOWNLOADER

Convert your Spotify playlists to MP3 seamlessly! 🚀

Overview

This Python script allows you to convert your Spotify playlist to a collection of MP3 files effortlessly. It utilizes the Spotify API to fetch track names and searches for corresponding YouTube videos using yt_dlp.

Features

  • Spotify Integration: Fetch track names from your Spotify playlist.
  • YouTube Search: Search YouTube for videos based on track names.
  • Parallel Processing: Utilize threading for efficient YouTube searches.
  • Song Download: Download songs from YouTube as MP3 files using yt_dlp.

Prerequisites

Before running the script, make sure you have the following:

  • Spotify API credentials (Client ID and Client Secret)
  • YouTube Data API Key
  • Python 3.6 or later installed

Setup

  1. Install dependencies:

    pip install -r requirements.txt
    
    
    
  • Set up your API credentials by creating a .env file with the following:

    client_id=YOUR_SPOTIFY_CLIENT_ID

    client_secret=YOUR_SPOTIFY_CLIENT_SECRET

    API_KEY1=YOUR_YOUTUBE_API_KEY

  • RUN THE 'main_scr1.py'

  • Enter your Spotify playlist link when prompted.

  • Sit back and enjoy as the script fetches and downloads your favorite songs as MP3 files!

About

This Python script allows you to convert your Spotify playlist to a collection of MP3 files effortlessly. It utilizes the Spotify API to fetch track names and searches for corresponding YouTube videos using yt_dlp.


Languages

Language:Python 100.0%