Skip to content

qzya/confluence-pages-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Conflunce pages to csv

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.

Usage:

Fill in the values of the base_url, root_page_id, confluence_token variables at the beginning of the file:

base_url = '' # Enter base url e.g. 'https://yourname.atlassian.net/wiki'
root_page_id = '' # Enter root page ID (e.g. '3833641')
confluence_token = '' # Enter Confluence API token (see https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/)
All this variables must be strings. See the comments in code.

Or uncomment next 3 lines, this will allow you to enter variable values during the execution of the script:

# base_url = input('Enter base url (e.g. https://yourname.atlassian.net/wiki):\n')
# root_page_id = input('Enter root page ID (e.g. 3833641):\n')
# confluence_token = input('Enter Confluence API token:\n')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages