Advogato diary entry deletion

I've been looking for an automated way to delete all my old entries on Advogato.org so deekayen.net could have exclusive Google results for the entries, but I couldn't find one, so I made one. It uses the Drupal 4.6 XMLRPC library with 8 lines of code added to the top to make the Advogato XMLRPC requests. This is what I added to the top of Drupal 4.6's include/xmlrpc.php file before I ran the script at a command line. Echos of the number 1 are a success.

set_time_limit(0);

$username = 'deekayen';
$password = 'my_password';

$len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username);
$cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password);

for($i = 0; $i <= $len; $i++) {
  echo xmlrpc('http://www.advogato.org/XMLRPC', 'diary.set', $cookie, $i, ' ');
}


» deekayen's blog · Delicious · Digg · Technorati Topics:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd> <div> <img> <h1> <h2> <h3> <h4> <h5>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options