[파이썬]워드프레스 자동포스팅
# Script/Python2022. 10. 13. 19:06[파이썬]워드프레스 자동포스팅

from wordpress_xmlrpc import Client from wordpress_xmlrpc import WordPressPost from wordpress_xmlrpc.methods import posts wp = Client('http://워드프레스 주소/xmlrpc.php', '아이디', '비밀번호') post = WordPressPost() post.title = 'My new title' post.content = 'This is the body of my new post.' post.terms_names = { 'post_tag': ['test', 'firstpost'], 'category': ['Introductions', 'Tests'] } post.post_status = "p..

image