Skip to main content

CLI tool to render HTML using Playwright

Project description

Playwright HTML Renderer

PyPI

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 to STDOUT:

    $ 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.

🐛 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

playwright_html_renderer-0.3.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

playwright_html_renderer-0.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file playwright_html_renderer-0.3.tar.gz.

File metadata

File hashes

Hashes for playwright_html_renderer-0.3.tar.gz
Algorithm Hash digest
SHA256 f995b06d70e970e60e11a9b24f75defc82301cc02b872d4f46916ec11d4bce22
MD5 078e2b3b74d36210d05f4ba187eb0df3
BLAKE2b-256 f4579d54d0f62ba43bbd7b59f1365a8d7b375bf2a96767903a17df815d9bbaa3

See more details on using hashes here.

File details

Details for the file playwright_html_renderer-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for playwright_html_renderer-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 764b02e060847d124d51a309b848db474a47a5834bf446d66d447d548c70e769
MD5 7fee78db1ea31305dd4b1725250d2c76
BLAKE2b-256 3195b55692920998c81e844b747e499e38841725194d424a81e6085b7bd3a337

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page