/HB-DRM-free-bulk-downloader

powershell script for downloading humble bundle DRM-Free files

Primary LanguagePowerShell

HB DRM-Free bulk downloader

It's a powershell script which allows you to download books from humble bundle pages (https://www.humblebundle.com/downloads?key=XXXXXXXXXXXXXXXX) in bulk. It works natively for Windows 8+, Windows 7 required downloading the Powershell 3+, link below. It uses Internet Explorer instance to retrieve the links so all you need to do is login to humble bundle through the Internet Explorer and that's it.

To install newer Powershell on Windows 7, visit this link: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6


HB DRM-Free bulk downloader 0.3.3

Bundle files are downloaded sequentially and saved in folder structure as shown in this example: downloads\bundleName\bookName\specificBookFile.extension

To specify your preferred label/extension/format for link only, use:

for global preferred label use:

platform global switches:

  • @default (needed only when you want to reset it back, for exmaple from mac back to default for next set of links)
  • @windows (usually selected by default; if you really want to reset it use @default instead)
  • @mac
  • @linux
  • all of them works but it has to be the exact wording (e.g. @android)

other global switches:

  • %strict (this will download only your preferred label)
  • %normal (default, this will return to downloading at least 1 label)
  • %pref (default, download first found preferred label in list and skip others)
  • %all (download all preferred labels)

They can be used together in one line:

  • %strict,pref (this would download only 1 specified label and skip others, even those without the pref label)

only # and % switches supports multiple parameters

Downloads are permanently stored after each book/download versions are retrieved. If you interrupt it then partially downloaded books will be removed. Next time you start this script, it'll continue where you left (the next book/download) if you kept the downloaded books in downloads folder.

To better track the download progress without minimizing your active window, you can go to Taskbar settings: Combine Taskbar buttons > 'When Taskbar is full'. Then you'll be able to see the download progress shown in the window title of your taskbar.

Powershell ExecutionPolicy change

start RUN.bat to launch the script for editing the script itself open HB-books_download.ps1 in notepad (or notepad++,etc...)

If the window closes fast after starting RUN.bat, follow these steps:

  1. Go to any folder (file explorer) and choose file > open windows powershell >

    open windows powershell as administrator.

  2. In the Windows PowerShell window type: get-ExecutionPolicy.
  3. If you are geting the 'Restricted' text, type: set-ExecutionPolicy RemoteSigned, then just confirm with y for yes.
  4. After that the RUN.bat should work as intented.

If you'd like to create a shortcut for the script, you just need to make shortcut of RUN.bat file.