- First open javascript console on the https://www.humblebundle.com/downloads?key=xxxxxxxxxxx page.
- Paste the content of get-contents.js to the console
- Then paste the alerted text into a file, named files.txt next to the download.sh
- Run the download.sh
- Enjoy
Last active
May 19, 2018 19:52
-
-
Save Ajnasz/3356db6fd0e81013927c9cf5821a73de to your computer and use it in GitHub Desktop.
Download stuff from humble-bundle in batch
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
#!/bin/sh | |
wget -i files.txt | |
for i in *;do n=$(echo $i | sed -E 's/\?.+//'); mv "$i" "$n"; done; |
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
alert(Array.from(document.querySelectorAll('.whitebox-redux a.a')).map(a => a.href).filter(f => f.startsWith('https://dl.humble.com')).join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment