Project

HtmlTinkerX

HtmlTinkerX is a powerful async C# library for HTML, CSS, and JS processing, parsing, formatting, and optimization. It provides web content processing capabilities including browser automation, document parsing with multiple engines, resource optimization, and more. PSParseHTML is the PowerShell module exposing HtmlTinkerX to PowerShell.

Stars126
Forks19
Open issues1
ReleaseHtmlTinkerX-v2.0.7
Language: HTML Updated: 2026-03-23T22:17:20.0000000+00:00

Curated Examples

Capture a page screenshot

Use PSParseHTML to capture browser-backed output from PowerShell.

This pattern is useful when an operations script needs an image artifact from a web page or local HTML output.

It is adapted from the PSParseHTML command mapping in the HtmlTinkerX README.

When to use this pattern

  • You need a screenshot as part of a report or validation run.
  • The page has to be rendered by a real browser engine.
  • The workflow is PowerShell-first.

Example

Import-Module PSParseHTML

$session = Start-HTMLSession -Url 'https://example.com'
Save-HTMLScreenshot -Session $session -OutFile "$PSScriptRoot\example.png"
Close-HTMLSession -Session $session

What this demonstrates

  • using the PowerShell module surface
  • producing a screenshot artifact from a URL
  • keeping browser-backed rendering inside an automation script

Source