Skip to content

Instantly share code, notes, and snippets.

@dangmai
Created January 8, 2020 05:43
Show Gist options
  • Save dangmai/3b2a54c60c3f5428d4fc3b8122424ea9 to your computer and use it in GitHub Desktop.
Save dangmai/3b2a54c60c3f5428d4fc3b8122424ea9 to your computer and use it in GitHub Desktop.
Spotify Tracklist to CSV
Array.from(document.querySelectorAll("li.tracklist-row")).map(it => [it.querySelector(".tracklist-name").innerText, it.querySelector(".tracklist-row__artist-name-link").innerText, it.querySelector(".tracklist-duration").innerText].join("\t")).join("\r\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment