Thursday, February 17, 2011

Easy RSS

RSS is ridiculously easy to create. It should be available to everyone, without the need for a specialized blogging application.


Here's a Perl script that will create an RSS feed from a tab separated document.


#-------------------------------------------

Here's a file to test it on:

#-------------------------------------------

title link  description
Stephen's Web     http://www.downes.ca    Stephen's Web home page & stuff "
Half an Hour      http://halfanhour.blogspot.ca The place I write stuff
Let's Make Some Art Dammit    http://letsmakesomeartdammit.blogspot.com The place I store my artistic stuff

#-----------------------------------------------

Here's a demo link to see the script working:

http://www.downes.ca/cgi-bin/easyrss.cgi

#-----------------------------------------------

-- Stephen

Note that this is plain Perl, without any modules (you could actually write it in a tenth of the space using Perl modules) because I want the script to just work, without worrying about how your Perl is set up.