parsing RSS XML feed for item value

2013-11-19 Thread Larry Wilson
Wanting to parse out the the temperature value in the "http://rss.weather.com.au/nsw/newcastle";
===


http://rss.weather.com.au/w.dtd";>

Weather.com.au - Newcastle Weather
http://www.weather.com.au/nsw/newcastle
Current conditions and forecast for Newcastle, New 
South Wales.
en-au
Copyright 2013 - Weather.com.au Pty Ltd
Tue, 19 Nov 2013 05:00:00 GMT
Tue, 19 Nov 2013 05:00:00 GMT
15

Newcastle Current Conditions

http://www.weather.com.au/nsw/newcastle/current



Tue, 19 Nov 2013 05:00:00 GMT
C1384837200



...etc
===
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: parsing RSS XML feed for item value

2013-11-20 Thread Larry Wilson
>>> feed.entries[0].w_current
{'temperature': u'20.3', 'dewpoint': u'18.6', 'windgusts': u'29.6', 'rain': 
u'0.6', 'humidity': u'90', 'pressure': u'0.0', 'windspeed': u'22.2', 
'winddirection': u'SSW'}
>>>

in the above I get the subitem as shown. How do I extract the label, values 
pairs?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: parsing RSS XML feed for item value

2013-11-20 Thread Larry Wilson
Thank you folks, now I know what I don't know and have a solution. 
-- 
https://mail.python.org/mailman/listinfo/python-list