Skip to content

Instantly share code, notes, and snippets.

@ndrew
Created October 9, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndrew/fd90ac47a9ab0a45596274b9bad85ad6 to your computer and use it in GitHub Desktop.
Save ndrew/fd90ac47a9ab0a45596274b9bad85ad6 to your computer and use it in GitHub Desktop.
extract the songs from spotify playlist
var a = [];
var nodes = document.querySelectorAll(".tracklist-row");
for (var i = 0; i < nodes.length; i++) {
a.push(nodes[i].querySelector(".link-subtle").textContent + " — " + nodes[i].querySelector(".tracklist-name").textContent)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment