Usage: 1) Create the "userinfo.inc.php" file, with your Delicious username and full-name, e.g.: 2) Run this script and redirect the output as needed: $ php delicious-xml2rss.php < delicious-posts.xml > delicious-rss.xml */ // Load the (private) "auth_info.inc.php" file require('userinfo.inc.php'); if (!defined('DELICIOUS_USERNAME')) define('DELICIOUS_USERNAME', 'username'); // Print the initial '' line using PHP code, so that the trailing // "?"+">" doesn't confuse PHP and/or editor syntax-highlighting. print ''."\n"; ?> Delicious/<? print DELICIOUS_USERNAME; ?> http://delicious.com/ bookmarks posted by $line) { if ($line_num > 1) { $pattern = '/ 0) { echo ' '."\n"; echo ' '.$matches[3].''."\n"; echo ' '.date('r', strtotime(str_replace('T', ' ',$matches[5]))).''."\n"; echo ' http://delicious.com/url/'.$matches[2].'#'.DELICIOUS_USERNAME.''."\n"; echo ' '.$matches[1].''."\n"; echo ' '."\n"; echo ' http://delicious.com/url/'.$matches[2].''."\n"; echo ' http://feeds.delicious.com/v2/rss/url/'.$matches[2].''."\n"; echo ' '.DELICIOUS_USERNAME.'\'s bookmarks'."\n"; $tags = explode(' ', $matches[4]); foreach ($tags as $tag) { echo ' '.$tag.''."\n"; } echo ' '."\n"; } } } ?>