Python universal feedparser xml
Posted
by
timg
on Stack Overflow
See other posts from Stack Overflow
or by timg
Published on 2010-12-21T23:52:58Z
Indexed on
2010/12/21
23:54 UTC
Read the original article
Hit count: 217
I am trying to read an xml feed with the python feedparser, but cannot seem to navigate the elements. Here is what I am trying:
import feedparser
d = feedparser.parse('http://www.website.com/feed')
text= d.status.test
and here is the xml:
<?xml version="1.0" encoding="UTF-8"?>
<statuses type="array">
<status>
<created>Tue Dec 21 14:16:12 +0000 2010</created>
<id>123</id>
<text>Hello</text>
</status>
</statuses>
© Stack Overflow or respective owner