How can I post a comment to a wordpress blog?

2019-05-11 03:35发布

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.

I keep seeing references to comment apis and xmlrpc, so I feel like this should be possible.

1) what POST / GET can I call, from python, to post a comment to a wordpress blogpost?

2) for extra points, do you know a python library that manages this?

1条回答
Rolldiameter
2楼-- · 2019-05-11 03:58

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.

查看更多
登录 后发表回答