1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 1.00 out of 5)
Loading...
:

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:

rss-reader.py

(Visited 284 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X