【问题标题】:Parsing an Itunes Podcast Feed with Python/Django使用 Python/Django 解析 Itunes 播客源
【发布时间】:2013-06-19 20:04:37
【问题描述】:

如果我想在 Python / Django 中解析 iTunes 播客提要,最简单的方法是什么?

http://www.apple.com/itunes/podcasts/specs.html

【问题讨论】:

    标签: python django parsing feed podcast


    【解决方案1】:

    您可以为此使用 python feedparser(http://pythonhosted.org/feedparser/),它易于使用

    >>> import feedparser
    >>> d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
    >>> d['feed']['title']
    u'Sample Feed'
    

    http://pythonhosted.org/feedparser/introduction.html

    【讨论】:

      猜你喜欢
      • 2010-11-25
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      • 2010-10-01
      • 1970-01-01
      • 2019-07-02
      • 1970-01-01
      • 2015-06-17
      相关资源
      最近更新 更多