Skip to main content

Download Books Bundle purchases from Humble Bundle via the command line.

Project description

humble-books-dl

A command-line tool for downloading Books Bundle purchases from Humble Bundle.

Installation

pip install humble-books-dl

Usage

Find your order KEY in the Humble Bundle purchase confirmation email or in the URL when viewing a bundle on humblebundle.com.

List all items in a bundle:

humble-books-dl list <order_key>

Download a bundle:

humble-books-dl download <order_key>

Download a single item by number:

humble-books-dl download <order_key> --item 3

By default, files are saved to ~/HumbleBundle/<bundle name>/ and formats are tried in the order epub -> pdf -> mobi. Files that already exist on disk are skipped.

All download options:

Flag Description
--item N Download only item N (as shown by the list command)
--formats Preferred formats in priority order. Falls back to all available if none match.
--output Download directory (default: ~/HumbleBundle)
--no-progress Disable progress bars

Python API

from humble_books_dl import HBPurchase

purchase = HBPurchase.from_order_key("ORDERKEY")
purchase.list_products()

purchase.download_all("~/HumbleBundle", formats=["epub", "pdf"])
purchase.download_product(3, "~/HumbleBundle", formats=["epub", "pdf"])

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humble_books_dl-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

humble_books_dl-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file humble_books_dl-0.1.0.tar.gz.

File metadata

  • Download URL: humble_books_dl-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for humble_books_dl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7abd4d4f813dbb3326698557dfa908f8cb9e6589cc963df9e2040b5724f29878
MD5 c75d3940eb9f5820e617513d4af3a739
BLAKE2b-256 3a29f0306387c5d5ae98e0419ccb4b0665fda686e25755e27b1d3d1837d54392

See more details on using hashes here.

File details

Details for the file humble_books_dl-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for humble_books_dl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee963c2c050732056779a336b30c241a35b946bdfb0b173640cb1682d6f0036
MD5 ec96596801a35988e646da8116213d46
BLAKE2b-256 aeb87b52d1e3aabcc2483fed57834ef9dba15659553a4d32ddf1a3968fc17d9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page