This project automates the transfer of playlists from Spotify to YouTube Music by integrating both platforms' APIs. It eliminates the need for manual playlist recreation.
There is no direct way to migrate playlists between Spotify and YouTube Music. Manual transfer is time-consuming and prone to errors due to differences in how track data is represented across platforms.
- Extract playlist and track data using Spotify API
- Process and standardize metadata (song name, artist)
- Search and match corresponding tracks on YouTube Music
- Automatically create playlists and add matched tracks
- No direct mapping between Spotify and YouTube Music tracks
- Inconsistent metadata (naming differences, missing fields)
- Handling mismatches and failed searches
- Implemented validation checks for matching accuracy
- Designed fallback search strategies for unmatched tracks
- Built a structured workflow to handle API requests and data flow
- Python
- Spotify Web API
- YouTube Music API (ytmusicapi)
getPlaylist.py– Fetch playlists from SpotifygetSongs.py– Extract songs from playlistscreatePlaylist.py– Create playlists on YouTube MusicsendSongs.py– Add songs to playlistshandleRequest.py– Manage API flowytmusicsetup.py– Setup YouTube Music integration
A working automation pipeline that transfers playlists across platforms while handling real-world data inconsistencies and reducing manual effort.