I've created a very simple API for sending LJ requests, which you can download from my website: http://lxs.sdf-eu.org/stuff.php
Basically you require 'lj', create an Lj::Lj with your username/password (currently sent plaintext but I'm sure someone can correct that) and issue lots of sends.
result_hash = send('mode' => 'editevent', ...)
I've written two programs which use it - one to remove all entries from your journal, another to post entries (or do a mass import from my hacked-up journal format). If anyone wants them, mail me and I'll put them on my stuff page.