Invoke-HtmlDataExtraction
August 3, 2026 ยท View on GitHub
SYNOPSIS
Extracts a browserless data source discovered by Find-HtmlDataSource.
SYNTAX
__AllParameterSets
Invoke-HtmlDataExtraction [-DataSource] <HtmlBrowserlessDataSource> [-AllowHttpFetch] [-AllowMediumRiskEndpoint] [-AllowExternalEndpoint] [-IncludeRawContent] [-MaxResponseBytes <int>] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Extracts a browserless data source discovered by Find-HtmlDataSource.
EXAMPLES
EXAMPLE 1
Find-HtmlDataSource -Content $html -DirectOnly | Select-Object -First 1 | Invoke-HtmlDataExtraction
EXAMPLE 2
Find-HtmlDataSource -Url https://example.org/products -DirectOnly | Invoke-HtmlDataExtraction -AllowHttpFetch
PARAMETERS
-AllowExternalEndpoint
Allows external endpoint sources when HTTP fetch is enabled.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AllowHttpFetch
Allows direct HTTP GET extraction for endpoint sources.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AllowMediumRiskEndpoint
Allows medium-risk endpoint sources when HTTP fetch is enabled.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DataSource
Browserless data source to extract.
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 payload or response content in the result.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-MaxResponseBytes
Maximum response body size to keep from direct HTTP endpoint extraction.
Type: Int32
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proxy
Proxy server address used when direct HTTP extraction is enabled.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials used with the proxy server.
Type: PSCredential
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
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
HtmlTinkerX.HtmlBrowserlessExtractionResult
RELATED LINKS
- None