标签:
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
}
[PowerShell]HTML parsing -- get information from a website
标签:
原文地址:http://www.cnblogs.com/buhaiqing/p/5083541.html