Added Import-Html support and examples

This commit is contained in:
dfinke
2016-02-22 11:27:56 -05:00
parent 845855a2bc
commit ac71736725
9 changed files with 117 additions and 21 deletions

15
Import-Html.ps1 Normal file
View File

@@ -0,0 +1,15 @@
function Import-Html {
[CmdletBinding()]
param(
$url,
$index
)
$xlFile = (New-TemporaryFile).fullname -replace "tmp","xlsx"
rm $xlFile -ErrorAction Ignore
Write-Verbose "Exporting to Excel file $($xlFile)"
Get-HtmlTable $url $index |
Export-Excel $xlFile -Show -AutoSize
}