Skip to content

Instantly share code, notes, and snippets.

@yuanoook
Last active June 15, 2017 04:14
Show Gist options
  • Save yuanoook/f6aedfdfdc406230a3e9e5c43a93c96b to your computer and use it in GitHub Desktop.
Save yuanoook/f6aedfdfdc406230a3e9e5c43a93c96b to your computer and use it in GitHub Desktop.
souldcloud playlist downloader https://soundcloud.com/user-772841178
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