Download your Spotify playlists as MP3 files.
This tool allows users to download tracks from their Spotify playlists directly to their local storage as MP3 files. It simplifies the process of accessing offline versions of your favorite playlists, making it ideal for individuals who want to enjoy their tunes without an internet connection.
- OAuth2 Authentication: Securely login with your Spotify account.
- Playlist Selection: Choose which playlist to download.
- Background Downloading: Tracks are downloaded in the background.
- Real-time Progress: Track the download progress in real-time.
-
Clone the repository:
git clone https://github.com/esurber05/spotify-to-mp3 cd spotify-playlist-downloader -
Set up Python virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Set up config variables:
- Create a
config.pyfile and add your Spotify API and session information:CLIENT_ID='your-client-id' CLIENT_SECRET='your-client-secret' SECRET_KEY='flask-secret-key' SESSION_COOKIE_NAME='your-session-cookie-name' SESSION_TYPE='filesystem'
- Create a
-
Run the application:
flask run
- Navigate to
http://localhost:5000in your web browser. - Log in with your Spotify account.
- Select a playlist to download.
- Monitor the download progress and retrieve your MP3 files.