stat157 / recent-quakes

Stat 157 Homework 2 due on Monday 2013-10-21 at 11:59pm
0 stars 20 forks source link

Accessing JSON data #2

Closed teresita closed 10 years ago

teresita commented 10 years ago

@reenashah and I are trying to load the JSON data using pandas read_json function (documented here). the problem is, we can't find the URL for the live earthquake data feed. (to replace the line

url = 'http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-M1.txt'

with a url that loads in the non-deprecated JSON data.

we've been browsing http://earthquake.usgs.gov/earthquakes/feed/ and clicked on a link labeled "API Documentation" but it leads us to a message about the government shutdown.

has anyone successfully located the URL for the live JSON feed?

kqdtran commented 10 years ago

On http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php, there's a right column labelled "Feeds" that has all the live JSON data you need! Aaron actually linked in on the spec as "The new data feed includes a link for Programmatic Access"

teresita commented 10 years ago

@kqdtran dude! thank you! we missed that.

kqdtran commented 10 years ago

No problem! Damn you guys are fast ~~

aculich commented 10 years ago

In the README I mentioned "Programmatic Access" with a link that takes you to this GeoJSON Summary Format page:

http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php

which contains the Feeds column on the right-hand side.

As I'm writing this I see that @kqdtran answered the questions already (thanks!)

One of the reasons I suggested that we cache the data as part of the assignment is exactly because of the government shutdown problem! On the page itself it says:

Due to a lapse in Federal funding, the USGS Earthquake Hazards Program has suspended most of its operations. While the USGS will continue to monitor and report on earthquake activity, the accuracy or timeliness of some earthquake information products, as well as the availability or functionality of some web pages, could be affected by our reduced level of operation.

I am going to re-open this issue in case other people have a similar question.