Created
January 17, 2020 02:00
-
-
Save zclongpop123/a53e2c85f9299a1727c4e76761b2d5be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #======================================== | |
| # 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