我想编辑发布的帖子,以及如何添加新段落或任何内容而不会删除以前的内容,只需通过python添加更多文本即可 这是我发布新帖子的代码:
wp = Client("http://mysite/xmlrpc.php", 'Username', 'Password')
wp.call(GetPosts())
wp.call(GetUserInfo())
post = WordPressPost()
post.title = Title
post.content = "hello"
post.terms_names = {'category': ['TV Shows']}
post.post_status = "publish"
post.comment_status = "open"
post.id = wp.call(NewPost(post))
print (post.id)