Python script parses Confluence pages content through the REST API and makes csv with id, title, date, body, attachments and tags columns. You can use it to import as WordPress posts, for example.
Script parses tables generated by Confluence Tabular Metadata Plugin for tags, removes some images by alt attribure, square brackets from the title and clears all id and style attributes.
Fill in the values of the base_url
, root_page_id
, confluence_token
variables at the beginning of the file:
confluence-pages-to-csv/confluence-pages-to-csv.py
Lines 4 to 6 in 05be428
Or uncomment next 3 lines, this will allow you to enter variable values during the execution of the script:
confluence-pages-to-csv/confluence-pages-to-csv.py
Lines 7 to 9 in 05be428