Created
December 31, 2014 01:42
-
-
Save csmatt/89a141063d25e0d26715 to your computer and use it in GitHub Desktop.
Pull song titles and artists from Pandora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var titlesAndArtists = []; $("#track_like_pages .infobox-body").each(function(elem){ | |
titlesAndArtists.push($(this).find(".first").text() + "," + | |
$($(this).find("p.s-0.line-h-1_4>a")[0]).text()); }); | |
for(var i = 0; i < titlesAndArtists.length; i++){console.log(titlesAndArtists[i]);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment