Last active
September 9, 2020 09:59
-
-
Save dmgl/87dd488b15c2104fff2adf0a15ec9114 to your computer and use it in GitHub Desktop.
Get file csv with vk music tracks
This file contains 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
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