Added -FirstDataRow and updated examples

This commit is contained in:
dfinke
2016-03-02 18:20:01 -05:00
parent e9b8deccf5
commit d6227f31c8
3 changed files with 7 additions and 5 deletions

View File

@@ -3,7 +3,8 @@ function Get-HtmlTable {
[Parameter(Mandatory=$true)]
$url,
$tableIndex=0,
$Header
$Header,
[int]$FirstDataRow=0
)
$r = Invoke-WebRequest $url
@@ -11,7 +12,7 @@ function Get-HtmlTable {
$propertyNames=$Header
$totalRows=@($table.rows).count
for ($idx = 1; $idx -lt $totalRows; $idx++) {
for ($idx = $FirstDataRow; $idx -lt $totalRows; $idx++) {
$row = $table.rows[$idx]
$cells = @($row.cells)