This is a sync tool which allows to transfer a playlist from Spotify to Google Play Music using NodeJS and inofficial APIs.
- Clone or download this repository
- Copy the file
config.example.json
toconfig.json
- Go to https://developer.spotify.com/my-applications and
create an application. Copy and paste the client id and client secret into the config.json into
spotify > oauth
- In the Spotify app add
http://localhost:3000/auth/spotify/callback
to Redirect URIs. Don't forget to press save. - Insert your google email address into the config.json into
gmusic > email
- Go to https://myaccount.google.com/apppasswords
and create a new app password. Copy and paste the app password to the config.json into
gmusic > password
- Enter a name for the new playlist to be created into the config.json into
gmusic > targetPlaylistName
- Find out the Spotify playlist id and user. (For example in the URL when using Spotify web).
Insert this Information into config.json into
spotify > userId
andspotify > playlistId
. The playlist has to be added to your Spotify library
Make sure you have node.js installed.
Open a terminal, change to the directory where you have cloned this repository.
Execute npm install
and then npm start
. This will open up a webserver on your machine.
Go to your webbrowser and open http://localhost:3000/auth/spotify. The import will now run. In your commandline you should see possible errors and a list of songs which could not be imported.
Press Ctrl+C to cancel the local webserver. Your playlist should now be available in Google Play Music.