这就是我放入 PowerShell 的内容:
PS > $source = "http://www.bing.com/search?q=sqrt(2)"
PS > $result = Invoke-WebRequest $source
PS > $resultContainer = $result.ParsedHtml.GetElementById("results_container")
这是我收到的错误消息:
The property 'ParsedHtml' cannot be found on this object. Verify that the property exists. At line:1 char:1 + $resultContainer = $result.ParsedHtml.GetElementById("results_contain ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict