Skip to content

custom-packages/playwright-html-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command-Line Interface (CLI) tool to Render HTML Using Playwright.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages