Sync / Transfer Spotify Playlist to Apple Music Is it possible to transfer all my Spotify playlist to the new Apple Music? 

I have like 10 playlists with more than 5000 songs, I would hate to lose them.
Alright I have found a way online to do it, the article was in Dutch so I will translate it for you all. 

Things you Need:


MAC, preferred latest version
An TextEditor, if you don't have one get the free TextWrangler
Charles Proxy, free to download proxy tool
Python 3, download the MAX OS X installer here
Spotify2Music script


The process:

Step 1 - The Setup

Create a folder on your desktop, this will be our working folder. Place the 2 files from the Spotify2Music zip in here.



Step 2 - Exporting the Playlists

Login into Exportify and extract the playlists you want. You can export the playlist by using the green buttons Export. Once you have done this successfully a window opens containing the CSV file. Select the whole file and create a file spotify.csv and place it in the desktop folder you created in step 1.



Step 3 - Matching songs

We must match the Spotify songs to Apple Music songs. Open a terminal and cd to the folder on the desktop (see Step 1). By this step you should have installed python 3. While in the Desktop folder type: python3 retrieve-identifiers.py. The script will start working. 



Step 4 - Retrieving the cookie from iTunes 

We are going to retrieve cookie data from iTunes using Charles Proxy.


From the Menu Proxy go to SSL Proxy Settings
Check 'Enable SSL Proxying'
Click on add and insert '*itunes.apple.com' 
In the same Menu check on 'Mac OS X Proxy'
Go to iTunes go to an Apple Music playlist but don't do nothing
Check you have enabled recording (please refer to image below)
When recording is enabled add the playlist to my Music





When Charles is stopped go to to the tabs as shown in the screenshot above. Copy the fields (x-dsid, cookie, x-guid) to TextEdit or Word. 

Step 5 - Inserting the Cookie data

The 3 data files we have just "stolen" from iTunes need to be inserted into 'insert-song.py'. Open this file with TextWrangler (or equivalent) and go to lines 30,31 and 32. Paste the x-dsid, cookie, x-guid data and save the file. Remember all files must be in the same folder. 



Step 6 - Ready to Import!

Open a terminal navigate to the folder from Step 1 typ in 'python3 insert-songs.py' and you are now importing all the (Matched) Spotify to Apple Music. 



Tips and Tricks:

I have made folders like this to enable a quick import of all my playlists. I suggest you do the same.


If you run into sync problems, check out this post http://www.idigitaltimes.com/apple-music-problems-how-fix-issues-syncing-playlists-icloud-library-offline-455939

Remark

Don't over do it! I had all the playlists open in tabs in my terminal and I overflowed the Apple Music buffer. This process takes time so do 1 playlist at a time and go sleep or take a nape or a coffee :) 

Credits

All credits go to This Post