This project is intented to migrate playlists from Spotify to Youtube Music
pip install -r requirements.txt
- Go to https://developer.spotify.com/dashboard/applications
- Create an app
- Define the Client ID and Client Secret as environment variables:
SPOTIFY_CLIENT_ID=changeme
SPOTIFY_CLIENT_SECRET=changeme
- We will be using OAuth authentication to authenticate with Youtube Music from
ytmusicapi
dependency. - Follow the steps on the link above to get the
oauth.json
file to the root of the project.
When the conditions above are met, as environment variables, provide the ID of the Spotify playlist you want to migrate, and the name and description of the Youtube Music playlist that will be created:
SPOTIFY_PLAYLIST_ID=changeme
YT_PLAYLIST_NAME=changeme
YT_PLAYLIST_DESCRIPTION=changeme
Run the script with:
python src/main.py
Enjoy your music!