Created
March 22, 2022 04:58
-
-
Save urielaero/4100dfe64412bb6abe151d0baff4105f to your computer and use it in GitHub Desktop.
Spotify Playlist To Text 21-mar-2022
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
// CTRL + SHIFT + C and run: | |
const songs = [...document.querySelectorAll("[role='row']")].map((e) => { | |
const childs = e.firstChild.childNodes[1]; | |
if (!childs) { return ''; } | |
const song = e.firstChild.childNodes[1].childNodes[1]; | |
return song.firstChild.textContent + " - " + song.childNodes[1].textContent; | |
}).join("\r\n") | |
console.log(songs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tool that allows to transfer from the text: tunemymusic useful when you don't have a Spotify account.