Skip to content

Instantly share code, notes, and snippets.

@bjesus
Created July 24, 2020 10:35
Show Gist options
  • Save bjesus/427533ef06307f45009acfc524e82c83 to your computer and use it in GitHub Desktop.
Save bjesus/427533ef06307f45009acfc524e82c83 to your computer and use it in GitHub Desktop.
apple music playlist to text
// Run in the browser console
songlist = ""
for (const song of document.getElementsByClassName('two-lines')) {
title = song.getElementsByClassName('song-name')[0].textContent.trim()
artist = song.getElementsByClassName('by-line')[0].textContent.trim()
a += artist+" - "+title+"\n"
}
console.log(songlist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment