Welcome to the Pandora FMS Module Library

 
This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Miscelaneous

rss-reader

Author: altsysrq Create in: 01/17/2012 Update in: 01/17/2012
Rating:
Module type : Local module


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

Included files

  •  
    File: rss-reader.py Size: 1KiB
    Uploaded in: 03/01/2017
    Description: