Вопрос

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top