Posting To WordPress via Python

import WordPresslib

url = ‘http://www.MYDOMAIN.com/xmlrpc.php’
wp = WordPresslib.WordpressClient(url, ‘USERNAME’, ‘PASSWORD’)
wp.selectBlog(0)
post = WordPresslib.WordpressPost()
post.title = ‘Sample Post’
post.description = ‘Sample Content’
idPost = wp.newPost(post, True)


Post via Python