DailySudoku 'Daily Puzzle' RSS feed
Sudoku is an ancient puzzle game from Japan.
There are many sites out there that have daily puzzles, so I picked one and decided to create an RSS generator for their daily posting
so I could get this in my aggregator (bloglines.com ).
Enjoy.
Update: Thanks to the guys at dailysudoku.co.uk you can now
subscribe to their own RSS feed here
#!/usr/bin/perl
#
# Get the daily suduko from dailysudoko.co.uk
# Author: Cameron Mallory http://berserk.org
# You may use this code below as you see fit, in any form whatsoever.
#
use XML::RSS;
my $rss = XML::RSS->new( version => '1.0' );
$rss->channel(
title => "Daily Sudoku by berserk.org",
link => "http://www.dailysudoku.co.uk/sudoku/index.shtml",
description => "Today's daily sudoku puzzle from www.dailysudoku.co.uk",
master => "webmaster@berserk.org"
);
##
## Don't need to change anything below this
##
$URL = "http://www.dailysudoku.co.uk/sudoku";
$match = '<a href="'. $URL. '/cgi-bin/sudoku/get_pdf.pl?today=1&image=/sudoku/img/today.png">
<img border="0" src="'.$URL.'/img/today.png"></a>';
$rss->add_item( title => "Daily Sudoku Puzzle", link => $URL, description => $match );
$rss->save("/full/path/to/your/directory/here/index.xml");
|