Skip to content

Instantly share code, notes, and snippets.

@NormanEdance
Created November 30, 2020 17:05
Show Gist options
  • Save NormanEdance/dce52ae619f2e30785ed6b93a07784fa to your computer and use it in GitHub Desktop.
Save NormanEdance/dce52ae619f2e30785ed6b93a07784fa to your computer and use it in GitHub Desktop.
function generateSongList(songSelector){
var res = [];
var elements = document.querySelectorAll(songSelector);
elements.forEach( (el) => {
res.push(el.getElementsByClassName('audio_row__performers')[0].textContent.trim()
+ " - "
+ el.getElementsByClassName('audio_row__title')[0].textContent.trim());
});
return res;
}
var claimed = generateSongList('div.audio_row.audio_claimed');
console.group(`Claimed songs (${claimed.length}):`)
console.log(claimed.join('\n'));
console.groupEnd();
var notClaimed = generateSongList('div.audio_row:not(.audio_claimed)');
console.group(`Not claimed songs (${notClaimed.length}):`)
console.log(notClaimed.join('\n'));
console.groupEnd();
var all = generateSongList('div.audio_row');
console.group(`All songs (${all.length}):`)
console.log(all.join('\n'));
console.groupEnd();
@NormanEdance
Copy link
Author

NormanEdance commented Nov 30, 2020

To transfer from VK to another music services (Apple Music, Spotify, Yandex, etc.):

  1. Go to https://vk.com/audio
  2. Scroll till the end of the page
  3. Paste code to console of dev tools (F12)
  4. Copy needed result list
  5. Paste to transferring tools like https://www.tunemymusic.com/

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