Guest User

Untitled

a guest
Apr 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. url = "http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCNDMS"
  2. headers = {"token":"my token"}
  3. response = json.loads(requests.get(url, "dataset", headers = headers).text)
  4. response = response['results']
  5. response = response[0]
  6. print(response)
  7.  
  8. {'uid': 'gov.noaa.ncdc:C00861', 'mindate': '1763-01-01', 'maxdate': '2018-04-22', 'name': 'Daily Summaries', 'datacoverage': 1, 'id': 'GHCND'}
Add Comment
Please, Sign In to add comment