Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = "http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCNDMS"
- headers = {"token":"my token"}
- response = json.loads(requests.get(url, "dataset", headers = headers).text)
- response = response['results']
- response = response[0]
- print(response)
- {'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