#!/usr/bin/perl # # csszengarden2rss - Converts recent themes from www.csszengarden.com to an RSS feed. # # For usage with http://www.csszengarden.com/ # # Copyright (c) 2004 Christophe Meyer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. use strict; my $html=''; while(<>){$html.=$_;} print < css Zen Garden http://www.csszengarden.com/ css Zen Garden: The Beauty in CSS Design en EOXML ; print < EOSEQ ; while ($html=~m/
  • EOSEQ ; } print < EOSEQ ; while ($html=~m/
  • (.*?)<\/a>.*?(.*?)<\/a><\/li>/smg) { my $link = 'http://www.csszengarden.com/'.$1; my $authorlink = $3; my $author = $4; my $title = $2.' by '.$author; my $title2 = $2; my $creator = ''.$author.''; my $description = '

    '.$title2.' by '.$creator.'

    '; print < <![CDATA[$title]]> $link CSS EOITEM ; } print < EOXML ;