mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 13:23:29 +00:00
Added Import-Html support and examples
This commit is contained in:
15
Import-Html.ps1
Normal file
15
Import-Html.ps1
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user