标签: python wordpress xml-rpc
以任何方式通过python通过xml-rpc从网站获取帖子内容: 例如,我提供帖子ID并获取该帖子ID的帖子内容
wp = Client("http://example.net/xmlrpc.php", 'xxxx', 'xxxxx') wp.call(GetPosts()) wp.call(GetUserInfo()) post = WordPressPost() wp.call("16941") print(post.content)