Skip to content

Instantly share code, notes, and snippets.

@Chukatuk
Created November 22, 2024 05:07
Show Gist options
  • Save Chukatuk/4529d5cda98e2a9b09252d4cfcf457d7 to your computer and use it in GitHub Desktop.
Save Chukatuk/4529d5cda98e2a9b09252d4cfcf457d7 to your computer and use it in GitHub Desktop.
Extract all vk.com playlist songs into a list.
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);
@Chukatuk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment