Here is an example of updating an fc2 blog using XMLRPC in python. I think it's very convenient when you want to post a blog automatically.
import xmlrpc.client
#Domain used by xmlrpc
DOMAIN = "http://blog.fc2.com/xmlrpc.php"
#BLOG for use with xmlrpc_ID
BLOG_ID = ""
#USERNAME for use with xmlrpc
USERNAME = "[email protected]"
#PASSWORD used in xmlrpc
PASSWORD = "xxxxx"
contents = {}
contents["title"] = "title"
contents["description"] = "article"
proxy = xmlrpc.client.ServerProxy(DOMAIN)
proxy.metaWeblog.newPost(BLOG_ID, USERNAME, PASSWORD, contents, 1)
Recommended Posts