Python universal feedparser xml
- by timg
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>