# #### ####
### \/#|### |/####
##\/#/ \||/##/_/##/_#
### \/###|/ \/ # ###
##_\_#\_\## | #/###_/_####
## #### # \ #| / #### ##/##
__#_--###` |{,###---###-~
\ }{
}}{
}}{
{{}
, -=-~{ .-^- _
}
SPOTIFY MUSIC 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
.
- 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
.
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
-
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!