Generating RSS feeds
I wrote my first ever rss feed today. It isn’t too complicated, you just output some specially formatted xml with the right mime-type.
The motivation behind this was to replace the default feed in the “Random signatures” feature of Gmail Labs because it contained some quotes which were a little too risque for emails to professors! I wanted to use the unix fortune program, but my hosting service does not have it. There is a webpage which prints the fortune out as html. I took that url and parsed the html (this was the most irritating part because I wasn’t familiar with php regexes) and print that out as rss xml.
To check it out click on the rss icon at prasun.info or directly go to the rss url