Skip to content

Instantly share code, notes, and snippets.

@dmgl
Last active September 9, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmgl/87dd488b15c2104fff2adf0a15ec9114 to your computer and use it in GitHub Desktop.
Save dmgl/87dd488b15c2104fff2adf0a15ec9114 to your computer and use it in GitHub Desktop.
Get file csv with vk music tracks
var links,thisLink;
var myCsv;
links = document.getElementsByClassName('audio_row_content _audio_row_content');
for (let item of links) {
title = item.getElementsByClassName('audio_row__title_inner _audio_row__title_inner').item(0).innerText
performer = item.getElementsByClassName('audio_row__performers').item(0).innerText
console.log(performer + " - " + title)
myCsv += performer + ";" + title + "\n"
}
window.open('data:text/csv;charset=utf-8,' + encodeURI(myCsv));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment