This is a workflow and Python script to import Pandora Likes to an Rdio playlist.
Note: This is a little gritty, but I haven't found a better way to do this yet. If you have, please let me know via a new issue.
-
Head to http://www.pandora.com/profile/likes/username to view your likes (replace with your username, of course).
-
Click "Show more" a bunch of times until you can see all of your likes on the page (the "Show more" link will be gone). If you would like to automate the "Show more" click, you can open the javascript console and type:
$('.backstage .show_more').trigger('click'); $("html, body").animate({ scrollTop: $(document).height() }, "fast");
Each time you paste this in and press enter it will act as if you clicked show more and scrolled to the bottom of the page.
-
Open up a JavaScript console and type:
$tracks = $('div#track_like_pages div.section'); for (var i = 0; i < $tracks.length; i++) { var t = $tracks.eq(i); var title = $.trim($('h3.normal', t).text()); var artist = $.trim($('div.infobox-body p.s-0 a', t).eq(0).text()); console.log(artist + ' -- ' + title); }
-
Copy the output to a text file for later parsing. This file will spit out your liked tracks in this format:
Artist -- Track Title
- Copy
rdio_consumer_credentials-template.py
tordio_consumer_credentials.py
. - Change the credentials in that file to your consumer key and secret as indicated by your Rdio application (you can apply for one here).
- Make sure your text file with tracks exported from Pandora are in
tracks.txt
in the directory of this script. - Run
python rdio-import.py
- Visit the link to request authentication.
- Enter the authentication PIN in your terminal.
- Watch and wait.
- Magic.
- Profit.