【发布时间】:2013-06-19 20:04:37
【问题描述】:
如果我想在 Python / Django 中解析 iTunes 播客提要,最简单的方法是什么?
【问题讨论】:
标签: python django parsing feed podcast
如果我想在 Python / Django 中解析 iTunes 播客提要,最简单的方法是什么?
【问题讨论】:
标签: python django parsing feed podcast
您可以为此使用 python feedparser(http://pythonhosted.org/feedparser/),它易于使用
>>> import feedparser
>>> d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
>>> d['feed']['title']
u'Sample Feed'
【讨论】: