Created
November 1, 2020 14:13
-
-
Save virgiliu/eefbadef4de9d2ecb2e01020ae471892 to your computer and use it in GitHub Desktop.
Gumroad bulk download
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
// Run this in the content download page and it will trigger download for everything | |
var sleep = (milliseconds) => { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)) | |
} | |
var waitTime = 1500; //ms | |
var x = $( "button:contains('Download')" ); | |
for(var i = 0; i < x.length ; i++) | |
{ | |
(function(idx) { | |
// Wait needed because browser blocks network calls if you make too many too fast | |
sleep(i * waitTime).then(() => { | |
x[idx].click(); | |
}); | |
})(i) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to modify the script for it to work. I'm using the "href" attribute, and simply adding http://gumroad.com in front of that variable. The previous script was using the "data-resource-id" which is empty / undefined.
Also I had some problems using console download managers to download the urls, since gumroad asks for confirmation before starting the file download. But I was able to use the Chrono Chrome extension. Just simply press the "new" button and paste in the list of URLs with each URL in a new line.