Board logo

标题: [转载代码] [PowerShell每日技巧]获取最近的地震信息(20131231) [打印本页]

作者: DAIC    时间: 2014-1-4 11:40     标题: [PowerShell每日技巧]获取最近的地震信息(20131231)

Everything is connected these days. PowerShell can retrieve public data from web services. So here's a one-liner that gets you a list of the most recently detected earthquakes and their magnitude:
  1. Invoke-RestMethod -URI "http://www.seismi.org/api/eqs" |
  2.   Select-Object -First 30 -ExpandProperty Earthquakes |
  3.   Out-GridView
复制代码
http://powershell.com/cs/blogs/tips/archive/2013/12/31/getting-most-recent-earthquakes.aspx




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2