xmlrpc is really easy in


nop_90 already pointed out how you just create an object and call the xml-rpc methods on the object itself.

to post to a livejournal blog:

import xmlrpclib
import datetime

server = xmlrpclib.ServerProxy(""Applause
now =
# the livejournal xml-rpc reference:
# defines the args for the postevent method as a 'struct' which translates to a dictionary in


args = {"username" : "username",
        "password" : "password",
        "event" : "They dyed me this color! That's how clever they are!",
        "subject" : "I'm thinking with sand here",
        "year" : now.year,
        "mon" : now.month,
        "day" :,
        "hour": now.hour,
        "min" : now.minute
# call the remote method as a method of the server object
response = server.LJ.XMLRPC.postevent(args)
print response

Perkiset's Place Home   Politics @ Perkiset's