DeezerToSpotifyPlaylist is a handy tool that allows users to seamlessly migrate Deezer playlists to Spotify. The project is written in a combination of Bash, Python, and a touch of HTML to provide a smooth and efficient playlist migration process.
Before getting started with the migration process, ensure you have the following prerequisites installed:
-
jq: The migration script relies on jq, a lightweight and flexible command-line JSON processor. Install it by running
sudo apt install jqin your bash terminal. -
Spotify Developer App: To make API calls to Spotify, you need to create a Spotify Developer App and obtain client tokens. Follow the steps below to create your app:
- Go to the Spotify Developer Dashboard.
- Log in or create a Spotify account.
- Click on "Create an App" and fill in the required information (in Redirect URIs be sure to put :
http://localhost:8000or the app will not work). - Once your app is created, note down the client ID and client secret in the
secret.json.sampleand rename it tosecret.json.
-
Clone the DeezerToSpotifyPlaylist repository to your local machine:
git clone https://github.com/Alexandre-Roussel48/DeezerToSpotifyPlaylist.git
-
Navigate to the project directory:
cd DeezerToSpotifyPlaylist -
Make the migration script executable:
chmod +x migrate
To migrate a Deezer playlist to Spotify, follow these steps:
-
Launch the migration script in your terminal:
./migrate <url_for_deezer_playlist>
-
The script will prompt you to authenticate with your Spotify account. Follow the on-screen instructions.
-
Once authenticated, the script will create a new playlist on your Spotify profile and add songs from the Deezer playlist to it.
Please make sure to keep your Spotify client ID and client secret confidential. Do not share them or embed them directly in your code.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute to the project and make it even better! If you encounter any issues, please report them in the Issues section.