Open GoogleCodeExporter opened 8 years ago
As it is implemented now, the URL for location ID is:
http://weather.yahooapis.com/forecastrss?u=c&p=USCA1116
The equivalent URL for WOEID would be:
http://weather.yahooapis.com/forecastrss?u=c&w=2502265
At the moment pywapi parses the XML data directly; it is now possible using YQL
to obtain the same data in JSON which would be much easier to parse.
The equivalent URLs for JSON data to the ones above are:
For location id:
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%
20where%20location%3D%22USCA1116%22%20and%20u%3D%22c%22&format=json
And for WOEID:
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%
20where%20woeid%3D2502265%20and%20u%3D%22c%22&format=json
Original comment by jtas...@gmail.com
on 8 Feb 2014 at 1:34
Original issue reported on code.google.com by
hector.v...@gmail.com
on 27 Oct 2013 at 5:36