mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
15 lines
346 B
PowerShell
15 lines
346 B
PowerShell
function Import-Html {
|
|
[CmdletBinding()]
|
|
param(
|
|
$url,
|
|
$index
|
|
)
|
|
|
|
$xlFile = [System.IO.Path]::GetTempFileName() -replace "tmp","xlsx"
|
|
rm $xlFile -ErrorAction Ignore
|
|
|
|
Write-Verbose "Exporting to Excel file $($xlFile)"
|
|
|
|
Get-HtmlTable $url $index |
|
|
Export-Excel $xlFile -Show -AutoSize
|
|
} |