如何从融合页面解析剩余的api代码

时间:2019-06-18 16:47:08

标签: confluence confluence-rest-api

我如何从融合页面上的rest api解析字段(任务ID,任务状态,任务主体)

我正在尝试从融合页面解析其余的api,以从api代码获取任务ID,任务状态和主体字段。我可以使用python,alteryx或sas或任何选项来解析此文件。我们还有其他一些需要解析的rest api。因此寻找自动化过程。请推荐解决方案。

 ```{"id":"33469","type":"page","status":"current","title":"Huddle Tracker","body":{"storage":{"value":"<ac:task-list>\n<ac:task>\n<ac:task-id>4</ac:task-id>\n<ac:task-status>incomplete</ac:task-status>\n<ac:task-body><span><ac:link><ri:user ri:userkey=\"123456789abc\" /></ac:link> - 6/13</span></ac:task-body>\n</ac:task>\n<ac:task>\n<ac:task-id>5</ac:task-id>\n<ac:task-status>incomplete</ac:task-status>\n<ac:task-body><p><span><ac:link><ri:user ri:userkey=\"123456789abc\" /></ac:link> - 6</span>/14</p></ac:task-body>\n</ac:task>\n<ac:task>\n<ac:task-id>6</ac:task-id>\n<ac:task-status>incomplete</ac:task-status>\n<ac:task-body><span><ac:link><ri:user ri:userkey=\"123456789abc\" /></ac:link> - 6/15<br /></span></ac:task-body>\n</ac:task>\n<ac:task>\n<ac:task-id>7</ac:task-id>\n<ac:task-status>incomplete</ac:task-status>\n<ac:task-body><span><ac:link><ri:user ri:userkey=\"123456789abc\" /></ac:link> - 6/16<br /></span></ac:task-body>\n</ac:task>\n</ac:task-list><p><span><br /></span></p><p><span><br /></span></p><p><br /></p>","representation":"storage","_expandable":{"content":"/rest/api/content/33469"}},"_expandable":{"editor":"","view":"","export_view":"","styled_view":"","anonymous_export_view":""}},"extensions":{"position":"none"},"_links":{"webui":"/display/abcd01d/Huddle+Tracker","edit":"/pages/resumedraft.action?draftId=33469","tinyui":"/x/Rw-zEw","collection":"/rest/api/content","base":"https://confluence:9999","context":"","self":"https://confluence:9999/rest/api/content/33469"},"_expandable":{"container":"/rest/api/space/abcd01d","metadata":"","operations":"","children":"/rest/api/content/33469/child","restrictions":"/rest/api/content/33469/restriction/byOperation","history":"/rest/api/content/33469/history","ancestors":"","version":"","descendants":"/rest/api/content/33469/descendant","space":"/rest/api/space/abcd01d"}}

i need Task ID, Task Status and Task Body parsed.

1 个答案:

答案 0 :(得分:0)

在找到可用的工具之后,我决定使用RPA来抓取内容并进行解析。 我发现的另一个选择是使用python包抓取数据。