-
-
Save barrywoolgar/03c5cb767b670d41cfdf1fb9f4fdf9c3 to your computer and use it in GitHub Desktop.
Humble bundle book bundles - download all books at once
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
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript. | |
This will download all the books in all the formats available. | |
*/ | |
$('a').each(function(i){ | |
if (['MOBI', 'PDF', 'EPUB'].indexOf($.trim($(this).text())) >= 0) { | |
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
} | |
}); | |
Or simply copy/paste the links from the console log to "list.txt" and use "wget -i files.txt" ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As @deadphan says, it doesn't seem to work anymore.
So I used the JS-Code from @inicola to get all Links and downloaded using PowerShell: