Created
November 22, 2024 05:07
-
-
Save Chukatuk/4529d5cda98e2a9b09252d4cfcf457d7 to your computer and use it in GitHub Desktop.
Extract all vk.com playlist songs into a list.
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
function row_to_line(row) { | |
let performer = row.querySelector('.audio_row__performers').innerText.trim(); | |
let title = row.querySelector('.audio_row__title_inner').innerText.trim(); | |
return `${performer} - ${title}`; | |
} | |
let audios = Array.from(document.getElementsByClassName('audio_row')); | |
let playlist = audios.map(row_to_line).join('\n'); | |
console.log(playlist); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the playlist page, scroll to bottom of playlist, right click and then "Inspect"
Go to console and paste the code
If you want to migrate to Spotify - paste the list here https://www.spotlistr.com