Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$url = "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_month.geojson"
$date = (Get-Date).ToString('yyyy-MM-dd')
$filePath = 'C:\Data\' + 'USGS Significant Earthquakes - Past Month' + ' ' + $date + '.js'
Invoke-RestMethod -Uri $url -Method GET -OutFile $filePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.