Created
October 14, 2019 09:46
-
-
Save mojtabaasadi/a898ea51c1d16605c0ee0169494b508f to your computer and use it in GitHub Desktop.
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
[...document.querySelectorAll('a .songInfo')].forEach(function (song) { | |
let artist = song.querySelector('.artist').getAttribute('title') | |
let title = song.querySelector('.song').getAttribute('title') | |
console.log('https://host1.rj-mw1.com/media/mp3/mp3-128/' + (artist + ' ' + title).split(' ').join('-') + '.mp3') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment