문제

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