Take a look at the feedparser library. This gives you a well formatted RSS object.
> import feedparser > feed = feedparser.parse('http://feeds.marketwatch.com/marketwatch/marketpulse/') > print feed.keys() ['feed', 'status', 'updated', 'updated_parsed', 'encoding', 'bozo', 'headers', 'etag', 'href', 'version', 'entries', 'namespaces'] > len(feed.entries) 30
guyrt source share