Re: Universal Feed Parser - How do I keep attributes?

2007-01-11 Thread Gabriel Genellina
At Thursday 11/1/2007 12:01, Max Erickson wrote: Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Wednesday 10/1/2007 14:38, [EMAIL PROTECTED] wrote: > >> >>> d = >> >>> feedparser.parse('http://weather.yahooapis.com/forecastrss?p= > 94089') >> >>> d.feed.yweather_location >>u'' > > You have t

Re: Universal Feed Parser - How do I keep attributes?

2007-01-11 Thread Max Erickson
Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Wednesday 10/1/2007 14:38, [EMAIL PROTECTED] wrote: > >> >>> d = >> >>> feedparser.parse('http://weather.yahooapis.com/forecastrss?p= > 94089') >> >>> d.feed.yweather_location >>u'' > > You have to feed it the *contents* of the page, not its URL.

Re: Universal Feed Parser - How do I keep attributes?

2007-01-10 Thread Gabriel Genellina
At Wednesday 10/1/2007 14:38, [EMAIL PROTECTED] wrote: >>> d = feedparser.parse('http://weather.yahooapis.com/forecastrss?p=94089') >>> d.feed.yweather_location u'' You have to feed it the *contents* of the page, not its URL. -- Gabriel Genellina Softlab SRL

Universal Feed Parser - How do I keep attributes?

2007-01-10 Thread [EMAIL PROTECTED]
I'm trying to use FeedParser to parse out Yahoo's Weather Data. I need to capture some attribute values, but it looks like FeedParser strips them out. Is there any way to keep them? XML Snippet: ... ... When I try to get the value, it's empty: >>> d = feedparser.parse('http://weather.yahooapis.