Last active
June 15, 2017 04:14
-
-
Save yuanoook/f6aedfdfdc406230a3e9e5c43a93c96b to your computer and use it in GitHub Desktop.
souldcloud playlist downloader https://soundcloud.com/user-772841178
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 sroll_interval = setInterval(() => { | |
window.scrollTo(0,100000000); | |
if (document.querySelectorAll('.soundList__item').length == 200) { | |
clearInterval(sroll_interval); | |
document.querySelectorAll('.soundList__item .sc-button-more').forEach((a,i) => { | |
setTimeout(() => { | |
a.click(); | |
console.log(i); | |
setTimeout(() => { | |
var d = document.querySelector('.sc-button-download'); | |
d && d.click && d.click(); | |
},300); | |
},10000*i); | |
}); | |
} | |
},1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment