Delicious feed today:
\r\n";
$footer = "";
include("simple_html_dom.php");
ini_set(SMTP, "gmr-smtp-in.l.google.com"); // blogger.com's mx record
$linkct=0;
$dt = date("Y-m-d");
if(isset( $argv[1])){ $dt=$argv[1]; } // Override date on the CLI if needed
$url="https://".$del_username.":".$del_password."@api.del.icio.us/v1/posts/get?dt=".$dt;
$subject = $title.$dt;
// simple_html_dom uses "tag" extensively internally, so I have to
// change the "tag" parameter that Delicious sends to something else.
$raw = preg_replace("/ tag=\"/"," hashtag=\"",file_get_contents($url));
$html=str_get_html($raw);
foreach($html->find('post') as $element){
$linkct++;
$body .= delicious_parse($element);
}
if($linkct > 0){
$message=$intro.$body.$footer;
delicious_display($subject, $message);
delicious_mail($blogger_email, $subject, $message);
}else{
echo "No links for $dt\r\n";
}
function delicious_parse($element){
$output .= "