Spotify Supports Local Music
To address your last point first, Spotify does indeed support local music:
In addition to over 30 million tracks that we offer, you can also use your Spotify app to play music files stored on your computer (which we call "local files").
From Local files feature explanation. To do so, you can:
- Click ⌄ in the top-right corner of the app and select Settings.
- Scroll down to Local Files.
- Any files in My Music, Downloads, and iTunes folders are automatically selected. Switch off any sources you don't want Spotify to access.
- Click ADD SOURCE to select another folder from which Spotify can access your personal music files.
Apple Music Files
There are those who have managed to export their Apple Music as a playlist, then import that into Spotify, for example:
You can do it with Soundiiz. Important: You have to download all the tracks in your AM playlist first. Export it as a .m3u file. Go to the Soundiiz website. Login to your Spotify account. Drag the .m3u file onto the tile that says "Drop here your file" Select Spotify as your destination platform. Name and convert your playlist.
Soundiiz will convert your playlist to Spotify and it will show up in your account, sometimes right away and sometimes you have to restart Spotfiy. Soundiiz will also give you an error log letting you know what tracks it couldn't find.
From repete7 on Spotify community.
If you have an iDevice, you could use the Workflow App, which has a 'Add playlist to Spotify' workflow.
Lastly, subzero2 has a solution involving python on OSX:
In iTunes, export the playlist to a xml file and name it, say,
Copy the following code into a text editor and replace file name at the second line with the name of your xml file, say,
Save this file a
.py file to your desktop and name it, say,
extract_text.py. What this python file does is converting your xml file to a text file.
import re, io
f = io.open("change_this_to_the_name_of_your_exported_playlist.xml", mode="r", encoding="utf-8")
fout = io.open("output.txt", mode="w", encoding="utf-8")
for line in f.readlines():
match = re.search("<key>(Name|Artist)</key><string>(.*?)</string>", line)
for i in range(len(l)):
song_or_artist = l[i].replace('&','&') # XML formating replaces & with & so we revert this replacement
fout.write(song_or_artist + (u' - ' if i % 2 == 0 else u'\n'))
- Open Mac OS X Terminal, paste the following command and hit Enter:
Then you will see a new file
output.txt in your Desktop, which contains the song name and the artist name for each line.
Copy all the text inside to http://www.playlist-converter.net/ , and follow the instructions on the website to convert this text to your Spotify playlist!
Credit for the above to subzero2 of Spotify community, as above.