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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d898aa7c3c9a2619d174a24e3b8f13a33f5946b05e3bf1bcc4d39dce6438aa |
|
MD5 | 3e50c8f0988fbb513913b811cd572b5b |
|
BLAKE2b-256 | ade3d61f399348274acd3bfac85655bf24e47a422ea42fc6ce9f474a38c1f0ae |
Hashes for playwright_html_renderer-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2351f05f705bad8e95db42a30f489cc0419f881ee79979ffd27a367e55cb00 |
|
MD5 | 50b5b257bd1107db2d0f169625d586c4 |
|
BLAKE2b-256 | c9e89fb1b71b9462a7b5a6b4c1e8631d2920b3c02459864a8e20189f9d6044ff |