使用Python脚本批量添加WordPress文章

1.9k Python 发表评论
我们用到Wordpress的xmlrpclib,步骤: 安装python 和 xmlpc。然后用下面代码新增一篇文章: import datetime, xmlrpclib wp_url = "https://www.awaimai.com/xmlrpc.php" wp_username = "" wp_password = "" wp_blogid = "" publish = True server = xmlrpclib.ServerProxy(wp_url) title = "This is title" content = "This is conte…