ninetails
3/9/2016 - 7:53 PM

Download list

Download list

// change .flac for the extension

// for crossdomain
copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).join("\n"))

// for relative paths
copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).map(url => [window.location.protocol, '//', window.location.host, window.location.pathname, url].join('')).join("\n"))

// for absolute paths
copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).map(url => [window.location.protocol, '//', window.location.host, url].join('')).join("\n"))
# read a list.txt with list
wget -c -w 30 --random-wait -i list.txt