Confluence (3.0.0_01) how to connect into server and then extract wiki page (html) using NodeJS?

My client has Wiki residing on Confluence using an older version 3.0.0_01 and they want to enter a path (url) to a specific page/space and then extract in html and insert in an internal Google Site.

1. With this older version, how do I connect? What API?

2. Once connected, what API can I use to extract/export in HTML?

3. Note: client has another version 3.5.6 with just a couple pages/spaces that also need extraction.

Thank you in advance!


1 answer

0 votes

There's a SOAP API for Confluence 3 (see ), but it's not going to give you html.  You'll have to convert anything you fetch from wiki markup to html by yourself.

You might find it easier to just scrape the page directly.

Thank you, Nic.

The SOAP and work to get it to HTML is a lot work and testing. Perhaps, I will have the client manually export to html (assuming that option exists in UI) and then upload to a web app.

Interesting. Nic, from your reference link I found this Python script. Perhaps NodeJS with this script or one similar may work. Thoughts?

Kind Regards,

Nice find!  I think that could be converted to NodeJS reasonably easily (I'm not a Javascript coder, and my Python isn't a lot better, but it does feel right)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,144 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you