【发布时间】:2012-09-10 05:51:56
【问题描述】:
我在 Python 中使用 feedparser 来解析远程 xml 提要。结果包括典型的标题/链接/已发布/等,但是还有一个“内容”标签具有以下值。如何访问 value 属性?
[{'base': u'http://url.com', 'type': u'text/html', 'value': u'<p>html text etc', 'language': None}]
我之前没有见过任何看起来像 [{}] 的数组。
【问题讨论】:
标签: python xml feedparser