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

Re: parsing RSS XML feed for item value

2013-11-20 Thread xDog Walker
On Wednesday 2013 November 20 05:44, Larry Wilson wrote: > >>> 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 sub

Re: parsing RSS XML feed for item value

2013-11-20 Thread xDog Walker
On Wednesday 2013 November 20 05:44, Larry Wilson wrote: > {'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'} Python 2.7.2 (default, Oct 10 2011, 10:47:36) [GCC 4.1.2 20061115

Fwd: parsing RSS XML feed for item value

2013-11-20 Thread Neil Cerutti
Larry Wilson itd...@gmail.com via python.org 10:39 PM (10 hours ago) wrote: > > Wanting to parse out the the temperature value in the > " ElementTree or xml.sax. Since you aren't building up a complex data structure, xml.sax will be an OK choice. Here's a quick and dirty job: import io import xm

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? -- http

Re: parsing RSS XML feed for item value

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 19:39, Larry Wilson wrote: > Wanting to parse out the the temperature value in the " element, just after the guid element using ElementTree or xml.sax. When you get tired of that, take a look at Universal Feedparser, a Python Package: http://code.google.com/p/feedparse

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/newcast