Created
May 16, 2017 06:12
-
-
Save jabyrd3/9e4dfe743c93346a8499541c858cf77e to your computer and use it in GitHub Desktop.
get artists from spotify playlist markup in chrome
This file contains 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
Array.from(document.querySelectorAll('.tracklist-row')) | |
.map(song => `${song.innerText.split('\n')[1]}, ${song.innerText.split('\n')[2].split('•')[0]}, ${song.innerText.split('\n')[2].split('•')[1]}`) | |
.reduce((acc, val) => acc += `${val}\n`, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment