Video Demo: https://youtu.be/bp0aS67imes
Spotify downloader is a python CLI program that downloads songs or even whole playlists from Spotify. It works by finding the YouTube URL of the music and downloading the video using a library called pytube. Then, after converting the video to mp3, the program adds different metadata of the song(Album art, Album name, artists, release date...) to the downloaded audio file using the mutagen library. This program also utilizes the spotipy library to interact with the Spotify API
- Create a Spotify developers account
- Create an app by clicking on create an app and giving name and description for the app
- Take a note of your Client ID and Client Secret from the app's page
- Open your terminal and run
git clone https://github.com/Hosea174/spotify-downloader
or optionally download the zip file - run
cd spotify-downloader
- run
export SPOTIPY_CLIENT_ID='<your-client-id>'
- run
export SPOTIPY_CLIENT_SECRET='<your-client-secret>'
- Finally, run
python project.py
and follow the instructions to download a song or a playlist from spotify
Run the following command in the terminal after navigating to the project's directory:
pip install -r requirements.txt