我想得到上下文页面汇合,使用python模块atlassian-python-api
https://github.com/AstroTech/atlassian-python-api
找到了如何创建新页面的示例
from atlassian import Confluence
confluence = Confluence(
url='http://localhost:8090',
username='admin',
password='admin')
status = confluence.create_page(
space='DEMO',
title='This is the title',
body='This is the body. You can use <strong>HTML tags</strong>!')
print(status)
如何获取上下文,这个页面的例子http://conf01:8080/pages/viewpage.action?pageId=111113?
根据example,您可以使用get_page_by_title
或get_page_by_id
获取页面内容。