Domanda

What is the easiest way if I want to parse an iTunes podcast feed in Python / Django?

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

È stato utile?

Soluzione

You can use python feedparser for this(http://pythonhosted.org/feedparser/) and its easy to use

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

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top