Spotify2Deezer is a Python application that transfers tracks from a specified Spotify playlist to a new playlist on Deezer. The app uses the Spotify API to retrieve track information, searches for each track on Deezer, and adds the tracks to a Deezer playlist.
Note: Currently, the Deezer developer platform is not accepting new applications, which may prevent some users from obtaining the required permissions for creating and managing playlists.
To use Spotify2Deezer, you need:
Spotify Developer Account: Sign up at the Spotify Developer Dashboard and create an application to obtain a Client ID and Client Secret.
Deezer Developer Account: Sign up at the Deezer Developer Portal to obtain an access token. Deezer currently requires OAuth 2.0 authentication for managing user playlists.
âš Warning: Deezer's developer platform is not accepting new applications at this time. Monitor their developer portal for updates on application registration.
pyenv
and pyenv-virtualenv
To manage your Python environment, you can use pyenv
and pyenv-virtualenv
to create an isolated environment for this project.
pyenv
and pyenv-virtualenv
(if you haven't already):brew install pyenv pyenv-virtualenv
pyenv
in Your Shell Configuration:Add the following lines to your shell configuration file (e.g., ~/.zshenv
or ~/.bashrc
):
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Then restart your terminal or source the file:
source ~/.zshenv
pyenv install 3.12.4
pyenv virtualenv 3.12.4 spotify2deezer-env
pyenv local spotify2deezer-env
pip install -r requirements.txt
.env
FileCreate a .env
file in the project root with the following environment variables:
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
SPOTIFY_PLAYLIST_ID=your_spotify_playlist_id
DEEZER_USER_ID=your_deezer_user_id
Replace your_spotify_client_id
, your_spotify_client_secret
, your_spotify_playlist_id
, and your_deezer_user_id
with your actual credentials.
To run Spotify2Deezer, follow these steps:
pyenv activate spotify2deezer-env
python src/main.py
Due to current restrictions, Deezer is not accepting new applications. This may prevent new users from creating or modifying playlists on Deezer using this application until Deezer reopens app registrations.
.env
file.pyenv
and pyenv-virtualenv
are set up correctly.