Python script that transfers all Spotify playlists to Youtube-Music using spotipy and ytmusicapi
- Generate a new app at https://developer.spotify.com/dashboard/applications)
- Fill the
redirect_urifrom config.py into the new app's settings - Fill in your
client_idandclient_secretfrom your Spotify app into config.py file
- Open a new tab
- Open the developer tools (Ctrl-Shift-I) and select the “Network” tab
- Go to https://music.youtube.com and ensure you are logged in
- Find an authenticated POST request.
- Paste copied cookies in headers_auth.json. Should look something like this

- After setting up both YouTubeMusic and Spotify. Transfer all your spotify playlists to youtubemusic with
python3 main.py