Automatically download all your liked songs on Spotify, without paying a dime.
- Automatically fetches and downloads your Spotify Liked Songs.
- Downloads audio from YouTube using
yt-dlp
. - Stores downloaded MP3s in a folder on your desktop.
- The script uses the Spotify API to get all your Liked Songs.
- It compares your Liked Songs with songs already downloaded.
- New songs are searched on YouTube and downloaded in MP3 format using
yt-dlp
. - The downloaded songs are saved to the Songs folder on your desktop.
git clone https://github.com/yourusername/yourprojectname.git
cd yourprojectname
Make sure you have Python 3 installed. Then install the required packages:
pip install -r requirements.txt
- Create a .env file in the root directory of the project.
- Add your Spotify API credentials in the .env file:
SPOTIPY_CLIENT_ID=your_spotify_client_id
SPOTIPY_CLIENT_SECRET=your_spotify_client_secret
SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/
python main.py
The first time you run the script, it will open a browser for you to authenticate with Spotify. After that, it will handle token refreshes automatically.