📌  相关文章
📜  python-wordpress-xmlrpc 获取帖子 ID - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:45.851000             🧑  作者: Mango

代码示例1
from wordpress_xmlrpc import Client
from wordpress_xmlrpc.methods.posts import GetPosts
wp = Client("https://wordpress.example.com/xmlrpc.php", "admin", "password")
allposts = wp.call(GetPosts())
for thepost in allposts:
    print thepost.id