percollate_download_html
Download web pages as a self-contained HTML file using Percollate. Embed images as base64, add a table of contents, cover page, or custom CSS for offline reading.
Instructions
Download one or more web pages as a self-contained HTML file. Use the 'inline' option to embed images as base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Additional CSS to override styles. | |
| toc | No | Generate a table of contents. | |
| urls | Yes | One or more URLs to convert. | |
| wait | No | Seconds to wait between processing URLs (sequential mode). | |
| cover | No | Generate a cover page. | |
| debug | No | Print detailed debug info. | |
| style | No | Path to a custom CSS stylesheet. | |
| title | No | Title for the bundle. | |
| author | No | Author for the bundle. | |
| inline | No | Embed images inline as base64 data URLs. | |
| no_amp | No | Don't prefer the AMP version of the page. | |
| output | No | Output file path (absolute or relative). If it ends with / or has no extension, treated as a directory and a filename is auto-generated. Directories are created automatically. | |
| template | No | Path to a custom HTML template (nunjucks). Applies to pdf, html, md. | |
| hyphenate | No | Enable hyphenation. Default: true for pdf, false otherwise. | |
| toc_level | No | Heading depth for ToC (1–6). Values >1 imply --toc. | |
| individual | No | Export each URL as a separate file instead of bundling. |