Page 1 of 1

Post what you downloaded to your wp blog

Posted: April 3rd, 2010, 3:10 pm
by Warking

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)
NOTE: You need wordpresslib.

Post what you downloaded to your wp blog

Posted: April 6th, 2010, 12:07 pm
by Warking
Ok, so maybe i need this post to add info, i will grab it.