Count all Confluence pages in python using XML-RPC API

I was recently asked how to count the total pages on a 4.2 Confluence server so I provided this python script that shows how to use the XML-RPC API to do it. The technique can be used for more than counting pages. The API provides all sorts of useful operations, like adding users. For more information on the available methods see this page:

Note that this script has very weak option handling and, as such, is not suitable for production.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.