Last active
September 9, 2017 22:02
-
-
Save revenkroz/2c40c5783d9ed3216c63c79e9ab35f0f to your computer and use it in GitHub Desktop.
Список всех треков на странице TuneFind
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
lines = ''; | |
var songs = document.querySelectorAll('[class^="SongTitle__heading"] a'); | |
var artists = document.querySelectorAll('[class^="SongEventRow__subtitle"] a[class="Tunefind__Artist"]'); | |
[].forEach.call(artists, function(item,i,a) { | |
lines += item.innerHTML + " — " + songs[i].innerHTML + "\n"; | |
}); | |
console.log(lines); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment