automation Python · Spotify API · ytmusicapi · OAuth
Spotify to YouTube Music
A Python command-line tool for transferring playlists and liked tracks from Spotify to YouTube Music and updating migrated collections.
- Problem
- Switching music services means manually rebuilding playlists and favorites, which takes time and can leave tracks behind.
- Solution
- The CLI reads public or private playlists and saved tracks from Spotify, searches for matches on YouTube Music, and manages playlist creation, updates, and removal.
- Outcome
- A repeatable process for migrating one playlist, every public playlist, or a library of liked songs between the two platforms.
- Stack
- PythonSpotify APIytmusicapiOAuth
Migration from the terminal
The project is derived from the open-source sigma67 tool and documents the changes made in this fork. It supports Spotify credentials and either browser or OAuth authentication for YouTube Music.
Available operations
Beyond the initial copy, the command can update previously transferred playlists, like corresponding tracks, and remove playlists from the destination.