

We're only interested in Cookie, X-Dsid and X-Guid. If everything went well, you're now able to view all the request headers in Charles of a request to. Next, select a random song on Apple Music you don't have in your library yet, right click and choose 'Add to library'. Make sure SSL Proxying is enabled and working correctly.

Start iTunes and Charles (or another intercepting proxy you like). Use an intercepting proxy to retrieve the Apple Music request headers Running python3 retrieve-identifiers.py will use the spotify.csv file to create a new file itunes.csv with each line consisting of the Apple Music identifier of a song in your Spotify library. In order to add songs to our Apple Music library, we need their Apple Music identifier.

Match the Spotify songs with their Apple Music identifier Save the resulting file as spotify.csv in the same directory as the directory you cloned this repo into. You can then export the playlist All using Exportify. If you want to export you whole Spotify library, simply create a new playlist called All and drag your whole library into it using the Spotify desktop app. The simplest way to do this is using Exportify. The first step is getting the songs you want to import into Apple Music into a CSV file. Some simple Python 3 scripts to help you into importing your existing Spotify library into Apple Music.
