Post what you downloaded to your wp blog
Posted: April 3rd, 2010, 3:10 pm
Code: Select all
import wordpresslib
url = 'http://www.mywpblog.com/xmlrpc.php'
wp = wordpresslib.WordPressClient(url, 'SomeAuthor', 'Someauthorpassword')
wp.selectBlog(0)
post = wordpresslib.WordPressPost()
post.title = 'Look at that, I love being a pirate'
post.description = '''$2,$1,$3 (or whatever command) blah blah blah blah
Google
Blah blah
'''
post.categories = (wp.getCategoryIdFromName('Mydownloads'),)
idPost = wp.newPost(post, True)