I put the URL into a JSON viewer to look at the structure, and cannot figure out what I am doing wrong. Weather Underground is a global community of people connecting data from environmental sensors like weather stations and air quality monitors so we can provide the rich. When I run this I get an exception "TypeError: list indices must be integers, not str" The JSON stream includes a bunch of fields with daily summary information (Dailysummary), but I cannot get out and any of the values they have in this list. I adapted their Python example code (see below). I am trying to pull historical data from the Weather Underground API.
0 Comments
Leave a Reply. |