humblebundle_trove_downloader

Downloader for the Humble Bundle Trove

Stars
5

Humble Bundle Trove Downloader

HumbleBundleTroveLoader is used for downloading and making a complete back-up of your entire Humble Bundle Trove library. It will download all platforms and group them together in folders based on the names of the game. Also if you already downloaded a game it will only load missing files.

Installation

Needs to be at least python 3.6.

git clone luckydonald/HumbleBundleTroveLoader
cd HumbleBundleTroveLoader

pip install -r requirements.txt
cd HumbleBundleTroveLoader
python loader.py

Create the cookie string

Go to HumbleBundle.com and sign in to your library.

The cookie string is tricky to get. You need to get the value of the cookie named _simpleauth_sess. Open the developer tools in your browser, go to storage and locate the cookie there. Copy paste the value from _simpleauth_sess.

  • In Firefox, open the Storage Inspector first click the row with _simpleauth_sess, then on _simpleauth_sess in the other menu far to the right under data, press Ctrl+C or CMD+C to copy. You'll get a string with _simpleauth_sess:"eyJfc...9", just remove the first _simpleauth_sess: part and keep the rest as the cookie string.).
  • In Chrome, open the Resource Panel and simply tripple-click the appropriate cell in the table to mark it and use Ctrl+C or CMD+C to copy. When pasting, be sure to surround the string in quotation marks ("") and remove trailing blank spaces.
  • In Safari, open the Storage Tab of the Web Inspector (Context menu on the page, click Inspect page) click the Storage tab, select Cookies on the sidebar, select the _simpleauth_sess cookie, and press Ctrl+C or Ctrl+C to copy it. It will copy the hole line, so just keep the second part of it. There is a safari_cookie_extractor.py tool which you can edit to aid you in the that process.
    Do not share your private data with anyone!

Put that into the settings file

Copy over the settings example file settings.example.py over to settings.py. Set the folder for the download there. Also set the _simpleauth_sess part we extracted previously.

Downloading missing games

The cookie string are timed-based and they will expire after a while (a couple of days). When that happens, you have to grab the cookie again. Any previously downloaded files will not be downloaded again.