Question

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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top