Created
July 24, 2020 10:35
-
-
Save bjesus/427533ef06307f45009acfc524e82c83 to your computer and use it in GitHub Desktop.
apple music playlist to text
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
// 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