The rss
table only gives you what is inside the <item>
element(s). Since RSS is plain old XML, the xml
table can be used instead.
SELECT * FROM xml
WHERE url="http://xml.weather.yahoo.com/forecastrss/SPXX0239_c.xml"
AND itemPath="rss.channel.*"
Would give you a data
object structured like:
{
"query": {
…
"results": {
"title": "Yahoo! Weather - Lanzarote, SP",
…
"location": { … },
"units": { … },
"wind": {
"chill": "19",
"direction": "20",
"speed": "32.19"
},
"atmosphere": { … },
"astronomy": {
"sunrise": "7:29 am",
"sunset": "8:19 pm"
},
"image": { … },
"item": {
"title": "Conditions for Lanzarote, SP at 8:59 pm WEST",
"lat": "28.95",
"long": "-13.6",
"link": … ,
"pubDate": "Mon, 15 Apr 2013 8:59 pm WEST",
"condition": { … },
"description": … ,
"forecast": [ … ],
"guid": { … }
}
}
}
}
To access the sunrise time, you could use data.query.results.astronomy.sunrise
.