external help file | Module Name | online version | schema |
---|---|---|---|
SelectHtml.dll-Help.xml |
SelectHtml |
2.0.0 |
Returns content from the HTML retrieved from a URL.
Select-Html [-XPath] <String> -Html <String> [<CommonParameters>]
Select-Html [-XPath] <String> [-Uri] <Uri> [<CommonParameters>]
Select-Html [-XPath] <String> -Path <String> [<CommonParameters>]
{{ Fill in the Description }}
PS C:\> Select-Html //title https://www.h2g2.com/
h2g2 - The Guide to Life, The Universe and Everything
PS C:\> Select-Html '//*[contains(concat(" ", normalize-space(@class), " "), " page-status ")]' https://www.githubstatus.com/
All Systems Operational
PS C:\> Select-Html //table https://www.irs.gov/countrycodes
CountryName CountryCode
----------- -----------
Afghanistan AF
Akrotiri AX
Albania AL
...
PS C:\> Select-Html //table https://www.federalreserve.gov/aboutthefed/k8.htm |Format-Table -AutoSize
nbsp 2021 2022 2023 2024 2025
-------- ---- ---- ---- ---- ----
New Year's Day January 1 January 1* January 1** January 1 January 1
Birthday of Martin Luther King, Jr. January 18 January 17 January 16 January 15 January 20
Washington's Birthday February 15 February 21 February 20 February 19 February 17
Memorial Day May 31 May 30 May 29 May 27 May 26
Juneteenth National Independence Day June 19* June 19** June 19 June 19 June 19
Independence Day July 4** July 4 July 4 July 4 July 4
Labor Day September 6 September 5 September 4 September 2 September 1
Columbus Day October 11 October 10 October 9 October 14 October 13
Veterans Day November 11 November 11 November 11* November 11 November 11
Thanksgiving Day November 25 November 24 November 23 November 28 November 27
Christmas Day December 25* December 25** December 25 December 25 December 25
The HTML to read from.
Type: String
Parameter Sets: Html
Aliases: Content
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The file to read the HTML from.
Type: String
Parameter Sets: Path
Aliases: FullName
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The URL to read the HTML from.
Type: Uri
Parameter Sets: Uri
Aliases: Url
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
XPath that specifies the HTML elements to extract.
Type: String
Parameter Sets: (All)
Aliases: Select
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.