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-allposts.php > delicious-posts.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.'posts/all'; $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")); fwrite(STDOUT, $sXml); } } else { fwrite(STDERR, "Error making HttpRequest(\"sCmd\"): LastErrorNo = ".$oPhpDelicious->LastErrorNo()."\n"); } ?>