A tool to copy Spotify playlists to YouTube Music (YTMusic). Currently at version 0.2.2, released on 2025-04-20. Release cadence is irregular; still in early development.
pip install spotify2ytmusicv2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Authenticate and copy a Spotify playlist to YouTube Music. Obtain Spotify API credentials from Spotify Developer Dashboard, and YTMusic headers from browser dev tools after logging into music.youtube.com.
Export the headers JSON as a string: export YT_MUSIC_HEADERS='{"User-Agent":"...","Cookie":"..."}'Use `client.copy_playlist(...)` instead of `client.transfer_playlist(...)`.
Extract the ID from the URL (e.g., '3s9t1vD1d0c2a6b8f0e4a' from 'open.spotify.com/playlist/...').