Automatically Posting To Wordpress


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  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)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.