Skip to content

🦗 Add Internet Archive BookReader PDF export and web panel - #14

Merged
JFWooten4 merged 7 commits into
mainfrom
bitta-blues
Nov 16, 2026
Merged

JFWooten4 merged 7 commits into
mainfrom
bitta-blues

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Adds an Internet Archive export path to the PDF toolbench, so an item ID or a full two-page reader URL can be used to capture a book as one PDF page per scan. This captures images shown by BookReader rather than downloading an archive-hosted PDF.

  • export-archive-book.py opens a visible, persistent Playwright Chromium session and pauses for sign-in or borrowing and an Enter keypress in Terminal. It switches BookReader to single-page (1up) mode, navigates by scan index, waits for the matching image to load, and captures it without reader controls.

  • Inclusive --start and --end positions count scans, including covers and front matter; output paths are configurable. Numbered PNG captures are reused when resuming. Temporary writes and PDF replacement preserve an existing PDF when a requested scan fails.

  • A dedicated Internet Archive panel validates item IDs, URLs, and scan ranges and builds a shell-safe local command. As with the other panels, the web interface does not execute the export.

  • README instructions explain the login/borrow handoff, persistent local browser profile, dependencies, and access limits. The new profile is ignored by Git; scan captures remain outside version control. Internet Archive's lending guidance describes reader-only access for some loans.

  • Frontend and Playwright-backed Python tests cover input rejection, delayed image loading, switching from 2up to 1up, identical blank pages, resuming gaps, out-of-range scans, and retaining an existing PDF after capture failure.

  • The additional panel builds on the modular toolbench and command-builder approach introduced by 🧩 Introduce modular PDF toolbench #1 without combining it with the existing Google Books, OCR, review, or compression workflows.

A complete export still depends on access to every requested scan in the current reader session; this change does not establish full-book access for the example title.

Source links

Online · Local · Desktop

JFWooten4 and others added 7 commits November 16, 2026 12:05
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@JFWooten4
JFWooten4 merged commit 5b7d3eb into main Nov 16, 2026
1 check passed
@JFWooten4
JFWooten4 deleted the bitta-blues branch November 16, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant