I can use PowerShell to parse an HTML page
PS > $foo = Invoke-WebRequest http://example.com
PS > $foo.Links.Count
1
However if I download the page
PS > Invoke-WebRequest -OutFile example.htm http://example.com
and then try to parse the downloaded page it gives unexpected result
PS > $foo = Invoke-WebRequest file://$pwd/example.htm
PS > $foo.Links.Count
0
How can I parse the local downloaded page?
See Question&Answers more detail:os