podcasting サイトの RSS をパースしてみる

ぐぐって、手近に出てきたサイトをチェック。

>>> d = feedparser.parse("http://radio.preston-net.com/rss.xml")
>>> d.encoding
'shift_jis'
>>> d.feed.title
u'Going My Way RADIO'
>>> e = d.entries[0]
>>> e.title
u'Going My Way RADIO 2005-02-14'
>>> e.link
u'http://radio.preston-net.com/radio2005-02-14.mp3'
>>> e.description
u'\u4eca\u56de\u306eRADIO\u3067\u306f\u3001\u30ea\u30b9\u30ca\u30fc\u304b\u3089\u306eSkype\u3067\u306e\u6295\u7a3f\u306b\u3088\u308bSkype Calling\u3092\u304a\u9001\u308a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u30c6\u30fc\u30de\u306f\u300c\u30d0\u30ec\u30f3\u30bf\u30a4\u30f3\u306e\u601d\u3044\u51fa\u300d\u3002\u3069\u3093\u306a\u601d\u3044\u51fa\u304c...\u3002\u6b21\u56de\u306e\u30c6\u30fc\u30de\u306f\u300c\u4eca\u3001\u8208\u5473\u304c\u3042\u308b\u3053\u3068\u300d (Running Time 09:01)'

なるほど、こういう感じなのね。