A set of crappy RSS scripts to handle RSS in an Unix way.
Go to file
2024-02-11 11:56:03 +01:00
bin fix: [rssmerge] debug removed 2024-02-11 11:56:03 +01:00
README.md Initial rss-tools crappy code from 2007 imported. 2013-04-14 14:05:30 +02:00
REQUIREMENTS chg: [REQUIREMENTS] added 2024-02-11 11:19:35 +01:00

RSS tools

Following an old idea from 2007 published on my blog post called RSS Everything?, this is a set of tools to work on RSS (Really Simple Syndication) in an Unix way.

The code committed in this repository is old Python code from 2007, it might break your PC, kill your cat or the Flying Spaghetti Monster might loose a ball.

Forks and pull requests more than welcome. You have been warned the code was just there to experiment RSS workflows.

Requirements

  • Python 2.x
  • Feedparser

rsscluster.py

rsscluster.py is a simple script to cluster items from an rss feed based on a time interval (expressed in number of days). The maxitem is the number of item maximum kept after the clustering. An example use is for del.icio.us/pinboard.in where you can have a lot of bookmarks during one day and you want to cluster them in one single item per a defined time slot in RSS or in (X)HTML.

rsscluster.py --interval 2 --maxitem 20 "http://del.icio.us/rss/adulau" >adulau.xml

rsscount.py

rsscount.py is a simple script to count how many items are in a RSS feed per day. This is used to build the wiki creativity index. There is no limit for url arguments.

rsscount.py "<rss_url>" | sort

rssdir.py

rssdir is a simply-and-dirty script to rssify any directory on the filesystem.

rssdir.py --prefix http://www.foo.be/cours/ . >rss.xml

rssinternetdraft.py

rssinternetdraft is a simple test to read a mbox file and generate an RSS from the subject.

rssmerge.py

rssmerge.py is a simple script to gather rss feed and merge them in reverse time order. Useful to keep track of recent events.

python2.5 --maxitem 30 --output phtml "http://api.flickr.com/services/feeds/photos_public.gne?id=31797858@N00&lang=en-us&format=atom"  "http://www.foo.be/cgi-bin/wiki.pl?action=journal&tile=AdulauMessyDesk"