link: http://stackoverflow.com/questions/9053573/powershell-html-parsing-get-information-from-a-website
希望能从一个网页里获取一些信息
function Get-FlightStatus { param($query) $url = "http://bing.com?q=flight status for $query" $result = Invoke-WebRequest $url $result.AllElements | Where Class -eq "ans" | Select -First 1 -ExpandProperty innerText }
时间: 2024-11-01 12:20:32