通过python的feedparse模块可以很容易的分析出rss的内容
#!/usr/bin/env python # [代码名字: Parse an RSS feed] # [代码分类: feedparser] # [代码描述: Parse and iterate over the items in an RSS feed] # [代码作者: Tim Voet <tim.voet@gmail.com>] # [SNIPPET_DOCS: http://www.feedparser.org/docs/introduction.html] # [代码协议: GPL] import feedparser feed_url = 'http://www.jonobacon.org/feed/' f = feedparser.parse( feed_url ) print "Feed Title %s" % f.feed.title for entry in f.entries: print "Title: %s" % entry.title print "link: %s" % entry.link print "Title: %s" % entry.title