Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Import Google Music playlists to Spotify?

Solved!

Import Google Music playlists to Spotify?

I've been with Google Music for about 5 months now. It's gotten progressivly worse with this lastest GUI update. For about a week I could not play anything, now it's uses so much ram it slows down my computer. I just want to listen to my music without issues and do art. That's it. 

 

So I'm trying out Spotify. But I have spent quite a bit of time creating and customizing playlists, I would really like to import them into Spotify while I try it out. I see there are LOTS of people going the other way, good luck to them. 

 

Any suggestions? Or is this not yet possible?

 

Running Windows. 

 

Reply
23 Replies

Thanks! This is what did it for me 🙂

Some of the songs get mismatched, and some are missing, but it works very well for the most part.

Hey! try using Musconv.com tool. It is an awesome tool that lets you transfer just about anything. It is helpful and saves me a lot of time.

I get this when trying to run the script:

 

Uncaught TypeError: Cannot read property 'textContent' of undefined
at <anonymous>:4:**bleep**

 

EDIT: Apparently i cant say **bleep**.. (Sixty N1Ne)

Here's how to transfer / copy / move Google Play Music playlist to Spotify.

 

1. Go to https://spotlistr.herokuapp.com/#/search/textbox and log in with Spotify.

2. Open your Google Play Music playlist in another tab, and stay in that tab.

3. Open the developer console (click here for a tutorial).

4. Paste the following code into the console, and press enter. (If the console asks you to "allow pasting", follow the prompts)

 

function fReplace(thisString, thisThing, thatThing) {
let tLS = thisString;
while(tLS.includes(thisThing)){
tLS = tLS.replace(thisThing, thatThing);
}
return(tLS);
}

var playlist = document.querySelectorAll('.song-table tr.song-row');
var strBuilder = "";
for(var i =0; i<playlist.length ; i++) {
var l = playlist[i];
l.querySelectorAll('td[data-col="title"]')[0].textContent;
var title = l.querySelectorAll('td[data-col="title"]')[0].textContent;
title = encodeURI(title);
title = fReplace(title, "%20%20", "%20");
title = fReplace(title, "Buy%0A%20", "");
title = fReplace(title, "%0A%20", "");
title = fReplace(title, "%0A", "");
title = decodeURI(title);
var artist = l.querySelectorAll('td[data-col="artist"]')[0].textContent;
var album = l.querySelectorAll('td[data-col="album"]')[0].textContent;

strBuilder = strBuilder + artist + ' | ' + title + ' | ' + album + '\r\n';
}
console.log(strBuilder);

5. A list of songs, artists, and albums will be generated in the console. Note: only the songs shown on screen will be generated. To generate more songs at once, zoom out as far as possible on your browser.

 

6. Copy the list of songs, artists and albums

7. Paste the list into the textbox at https://spotlistr.herokuapp.com/#/search/textbox

8. Press the "Search!" button, and your songs will be loaded up.

9. Scroll down, choose the songs with multiple matches which you prefer

10. At the bottom of the page, give your playlist a name, and press the "Create {playlist name}" button.

11. All done! Whew.

 

This code was copied from cookta2012's post, with a small change that fixed it for me. Don't worry about removing the spaces in between lines when you paste the songs into spotlistr.

 

Thanks,

Kyron

 

Suggested posts

Staff
Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random