Uses the fantastic "php-delicious" library created by E.J. Eliot: http://www.phpdelicious.com/ Usage: 1) Create the "auth_info.inc.php" file, with your Delicious username and password, e.g.: 2) Run this script and redirect the output as needed: $ php delicious-dump-alltags.php > delicious-tags.xml */ // Load php-delicious library require('php-delicious/php-delicious.inc.php'); // Load the (private) "auth_info.inc.php" file require('auth_info.inc.php'); $sCmd = PHP_DELICIOUS_BASE_URL.'tags/get'; $oPhpDelicious = new PhpDelicious(AUTH_DELICIOUS_USERNAME, AUTH_DELICIOUS_PASSWORD); if ($sXml = $oPhpDelicious->HttpRequest($sCmd)) { if (strlen($sXml) > 0) { //// Strip last two lines off the file, because these contain a timestamp //$sXml = substr($sXml, 0, strrpos($sXml,"\n")); //$sXml = substr($sXml, 0, strrpos($sXml,"\n")); // If $sXml contains no line-breaks, pretty-ify the XML if (strpos($sXml, "\n") !== true) { $sXml = str_replace("?>\n\n ",">\n", $sXml); } fwrite(STDOUT, $sXml); } } else { fwrite(STDERR, "Error making HttpRequest(\"sCmd\"): LastErrorNo = ".$oPhpDelicious->LastErrorNo()."\n"); } ?>