Skip to content

Instantly share code, notes, and snippets.

@zclongpop123
Created January 17, 2020 02:00
Show Gist options
  • Save zclongpop123/a53e2c85f9299a1727c4e76761b2d5be to your computer and use it in GitHub Desktop.
Save zclongpop123/a53e2c85f9299a1727c4e76761b2d5be to your computer and use it in GitHub Desktop.
#========================================
# author: Changlong.Zang
# mail: [email protected]
# time: Fri Dec 27 17:49:23 2019
#========================================
import xmlrpclib
#--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
def main():
'''
'''
url = 'http://wiki.company.com/rpc/xmlrpc'
client = xmlrpclib.Server(url)
token = client.confluence2.login('user', 'password')
page = client.confluence2.getPage(token, 'pageid')
page['content'] = new_content
client.confluence2.storePage(token, page)
client.confluence2.logout(token)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment