Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 19:04
6c846e7

Release notes | Installation | Downloads | Documentation

Release notes

Added

  • Add --render-js auto, the recommended mode for unknown pages: acquire statically and run JavaScript only on a JavaScript shell page; bare --render-js still means always. Pages that need browser APIs outside the bounded engine, such as crates.io, refuse at javascript_required.
  • Refuse captcha, bot challenge, login and JavaScript shell pages with a plain reason at stage challenge or javascript_required, instead of near-empty successes. Challenges are named, such as cloudflare, datadome or qrator, never solved.
  • Report http_status, redirect_count, challenge, charset, charset_source and render_js in URL receipts; brewdoc.receipt/2 changes only by adding keys.
  • Add --no-links for HTML: keep link text, omit destinations and disclose it in the receipt.
  • Decode mislabelled HTML charsets and undeclared Latin or Cyrillic HTML by fallback instead of refusing, disclosed as charset_fallback in local receipts.
  • Write links inside code and around images as standard Markdown links instead of [Link target] records; local HTML Markdown changes for these links.

Fixed

  • Keep the HTTP status and the redirect reason in URL refusals instead of a generic stage message.
  • Fall back to the acquired HTML when the JavaScript heap runs out, the DOM snapshot check fails or a page runs more than 200 timer callbacks, instead of refusing.
  • Start no script or module fetch after the JavaScript soft window, so script-heavy pages stop sooner.
  • Run scripts served or typed with any WHATWG JavaScript MIME type, such as application/x-javascript.
  • Let a non-HTTP(S) sub-request fail alone and ignore a non-HTTP(S) base URL, instead of refusing the JavaScript capture.
  • Convert pages that create upper-case STYLE, TITLE or TEXTAREA elements during JavaScript capture.
  • Offer ALPN http/1.1 over HTTPS, so WordPress.com sites that answered 403 to brewdoc, such as acloserlisten.com, now load.

Examples:

brewdoc --url "https://hn.algolia.com/?q=rust" --render-js auto --out search.md
brewdoc page.html --no-links --out page.md

PR #67


Installation

Choose one Python method (Python 3.12+, pip in an active virtual environment):

python -m pip install "brewdoc==0.7.0"
uv tool install --python 3.12 "brewdoc==0.7.0"
pipx install --python 3.12 "brewdoc==0.7.0"

npm/npx: Linux x64/glibc and macOS ARM64.

npm install --global brewdoc@0.7.0
npx --yes --package brewdoc@0.7.0 brewdoc --self-check

Homebrew: macOS 15+ ARM64 or Linux x64 with system glibc 2.35+.

brew tap kochetkov-ma/brew
brew install kochetkov-ma/brew/brewdoc
brewdoc --self-check
brewdoc file.pdf --out file.md

Downloads

Standalone bundles include Python. Extract the archive and keep the complete directory. From the extraction directory, run ./brewdoc/brewdoc (Windows: .\brewdoc\brewdoc.exe).

Linux x64/glibc | Windows x64 | macOS ARM64

Verify SHA256SUMS.

Documentation

README | Installation and updates | Formats and limits