Some simple python 3 scripts to help import your Apple Music playlists into Spotify playlists.
The first step is to select the playlist you want to import over and download webpage as a html file to the same folder as run.py.
Install dependencies using pip
$ pip install -r requirements.txt- Go to https://developer.spotify.com/dashboard/applications.
- Create an app with any name.
- Select the app.
- Select EDIT SETTINGS.
- Under Redirect URIs, enter
http://localhost:8888/callbackand select Add. Select SAVE. - Find Client ID and copy the value to the
client_idvariable in spotify_accessor.py. - Select SHOW CLIENT SECRET. Copy the value to the
client_secretvariable in spotify_accessor.py. - Go to https://spotify.com > Profile > Account.
- Copy the value of Username to the
usernamevariable in spotify_accessor.py. - Save the edited file.
Run the program by using the terminal and navigating to the directory you cloned this repo into. Type in
$ python run.pyto start the program. Follow the intended dirctions and BAM! Your Apple Music playlists are now Spotify playlists!
Incase the song-name/artist/album-name is not getting scraped, modify the attr value to the tag associated with the corresponding value(song-name/artist/album-name) in the html file. This may have happened due to Apple music updating their website.