Repository navigation
bookdl: yt-dlp for DRM-free ebooks (0.72.0) - #209
Merged
Merged
Conversation
bookdl <url>, info, search, humble [list|get], check. Sources: Project Gutenberg (gutendex metadata, fallback URLs), Standard Ebooks (?source=download, the bare link is a thank-you page), Internet Archive open items (lending-library items and LCP/ACS copies refused), Humble Bundle library via the _simpleauth_sess cookie (HUMBLE_SESSION in the credential store, md5 checked), and any direct DRM-free link. Library: "Author - Title.ext" in ~/Books ($BOOKDL_DIR, --to), a yt-dlp style download archive so reruns fetch only what is new, -f preference order, --all-formats, --calibre. Every file is checked for DRM after download (ADEPT, LCP, Mobipocket, KFX, .acsm, PDF EBX/APS; EPUB font obfuscation passes) and refused with exit 3, never removed. Kindle/Apple/Google Play/Kobo store links get what that store does allow instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan41 finding(s) HIGH/CRITICAL: 15 | MEDIUM: 12 | LOW: 14
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New command
bookdl: download the ebooks you are allowed to keep as files.bookdl <url>...: Project Gutenberg, Standard Ebooks, archive.org open items, a Humble order (downloads?key=), or any direct DRM-free link (Leanpub, Gumroad, itch.io, Google Play Export, Kobo DRM-free)bookdl info,bookdl search <query>(Gutenberg),bookdl humble [list|get],bookdl check <file>Author - Title.extin~/Books, download archive so reruns only fetch what is new,-fpreference order,--all-formats,--calibrehumble/HUMBLE_SESSIONDRM: every file is checked after download (ADEPT, LCP, Mobipocket, KFX, .acsm, PDF EBX/APS; font obfuscation passes) and refused with exit 3. Nothing removes DRM. Kindle/Apple/Google Play/Kobo store links get an explanation of what each store does let you export.
Tested: 17 new unit tests (hand-built zip/PDF/MOBI fixtures for DRM detection); live downloads from Gutenberg, Standard Ebooks and archive.org; Kindle link and archive.org lending item refused with exit 3; rerun skipped via the archive. Humble is covered by fixture tests only (no session on this box). The proxy and dev2-deploy test failures exist on master too.
🤖 Generated with Claude Code