CLI tool to render HTML using Playwright
Project description
Playwright HTML Renderer
Playwright HTML Renderer is a command-line interface (CLI) tool designed to render HTML using Playwright.
⚙️ Installation
You can install Playwright HTML Renderer via pip:
$ pip install playwright-html-renderer
⌨️ Usage
Playwright HTML Renderer provides a simple command-line interface to render HTML content using Playwright. Here are some examples of how to use it:
-
Read HTML from a file and output rendered HTML to
STDOUT
:$ playwright-html-renderer --html examples/input.html
-
Read HTML from
STDIN
and output rendered HTML to a file:$ cat examples/input.html | playwright-html-renderer --html - -o examples/output.html
-
Read HTML from a file, wait for a specific CSS selector (
#navigation
), and output toSTDOUT
:$ playwright-html-renderer --html examples/input.html -s "#navigation"
-
Read HTML from a file, wait for multiple selectors (
#navigation
,.main
), and output to a file:$ playwright-html-renderer --html examples/input.html -s "#navigation" ".main" -o examples/output.html
For more information, you can also use the --help option:
$ playwright-html-renderer --help
🔨 Technology
The following technologies, tools and platforms were used during development.
- Code: Python
- CI/CD: GitHub Actions
🐛 Found a Bug?
Thank you for your message! Please fill out a bug report.
License
This project is licensed under the European Union Public License 1.2.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for playwright_html_renderer-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff25b1445506f863b31a1a2c675ee690a7a4d14db68f135a2b03b2a561148d87 |
|
MD5 | 0b65dca89b7fc40808b6346d5080ffb9 |
|
BLAKE2b-256 | ab60a7cdb135b821d7b65a4133171d21ac368189c8f0bcf8ce56aa2d2dbfe469 |
Hashes for playwright_html_renderer-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9e180ddf2b57bc8c2b9e3836944256a9762013ef9d21215963ead05a4a499e |
|
MD5 | cf0ee91694fc3f390793d4d8e5ca908e |
|
BLAKE2b-256 | 6421bf14be74ce31d93a77a9f1ce074c52c2424efa0cde03102bf743ace03047 |