:
This is a python rss reader that can be used with other programs like Conky.
Module data
#!/bin/python import feedparser import re rss_url = "your.pandora.rss/feed" feed = feedparser.parse( rss_url ) for x in xrange(0,10): feed_date=feed['items'][ x ].date feed_date=feed_date.split(' ')[2] + " " + feed_date.split(' ')[1] + " " + feed_date.split(' ')[4] feed_title=feed['items'][ x ].title feed_description=feed['items'][ x ].description list_feed=feed_date + " | " + feed_title + " | " + feed_description list_feed=re.sub(r' ', ' ', list_feed) print "* " + list_feed
Files:
(Visited 266 times, 1 visits today)