Posted By

matthewnovak on 10/26/08


Tagged


Versions (?)

Automatically Posting To Wordpress


 / Published in: Python
 

URL: http://blackcodeseo.com/automating-wordpress-postsautomating-wordpress-posts/

  1. import wordpresslib
  2.  
  3. url = 'http://www.MYDOMAIN.com/xmlrpc.php'
  4. wp = wordpresslib.WordPressClient(url, 'USERNAME', 'PASSWORD')
  5. wp.selectBlog(0)
  6. post = wordpresslib.WordPressPost()
  7. post.title = 'Sample Post'
  8. post.description = 'Sample Content'
  9. idPost = wp.newPost(post, True)

Report this snippet  

You need to login to post a comment.