问题描述
我有一个与 wordpress 博客紧密结合的 django 站点.我想在 django 站点上有一个表单,用于向 wordpress 博客发布评论(用于审核).
I have a django site that's tightly coupled with a wordpress blog. I want to have a form on the django site that posts comments (for moderation) to the wordpress blog.
我一直看到对评论 apis 和 xmlrpc 的引用,所以我觉得这应该是可能的.
I keep seeing references to comment apis and xmlrpc, so I feel like this should be possible.
1) 我可以从 python 调用什么 POST/GET 来发表评论到 wordpress 博客文章?
1) what POST / GET can I call, from python, to post a comment to a wordpress blogpost?
2) 为了加分,你知道管理这个的 python 库吗?
2) for extra points, do you know a python library that manages this?
推荐答案
我看到 python-博客 项目在您正在寻找的 wordpress apis 上有友好的 python 包装器,特别是错误报告和 补丁 让您使用 wordpress XMLRPC 调用.
I see that python-blogger project has friendly python wrapper over wordpress apis that you are looking for, there specifically is bug-report and a patch to have you post comment on the wordpress site using the wordpress XMLRPC call.
这篇关于如何在 wordpress 博客上发表评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!