- 워프 관리자 페이지에 가서 셋팅한다
2.pip install python-wordpress-xmlrpc 설치
- 코드작성
wp = Client('https://kculture101.com/xmlrpc.php', 'kculture101', 'danny1025!!')
post = WordPressPost()
post.title = 'BEST POSTING_{}'.format(count)
post.content = 'MYMYGOOD'
post.terms_names = {
'post_tag': ['test', 'firstpost'],
'category': ["Korea's hidden gems"]
}
post.post_status = "publish"
wp.call(posts.NewPost(post))