Export-HtmlExtractionRecipe

August 3, 2026 ยท View on GitHub

SYNOPSIS

Saves a browserless extraction recipe created from a discovered data source.

SYNTAX

__AllParameterSets

Export-HtmlExtractionRecipe [-DataSource] <HtmlBrowserlessDataSource> [-Path] <string> [-IncludeRawContent] [-PassThru] [<CommonParameters>]

DESCRIPTION

Saves a browserless extraction recipe created from a discovered data source.

EXAMPLES

EXAMPLE 1

Find-HtmlDataSource -Content $html -DirectOnly | Select-Object -First 1 | Export-HtmlExtractionRecipe -Path .\recipe.json

PARAMETERS

-DataSource

Browserless data source to save as a recipe.

Type: HtmlBrowserlessDataSource
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-IncludeRawContent

Includes raw static payloads in the recipe. Review recipe files before sharing them.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Writes the recipe path to the pipeline.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

Destination JSON recipe path.

Type: String
Parameter Sets: __AllParameterSets
Aliases: OutFile
Possible values:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • HtmlTinkerX.HtmlBrowserlessDataSource

OUTPUTS

  • System.String
  • None