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
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.
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
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.