get_all_pages_from_space method fropm confluence python api dosent grab all pages from space. I have a script to grab all pages from confluence and save them, after we added a few more pages(children to already existing pages). Only uses 1 confluence method "get_all_pages_from_space" and it dosent show all pages. I've heard that there's a restriction to children number, is it true?
Old question now but the API does mention that the limit is 100 pages. Here is the excerpt from the documentation
# Get all pages from Space # content_type can be 'page' or 'blogpost'. Defaults to 'page' # expand is a comma separated list of properties to expand on the content. # max limit is 100. For more you have to loop over start values. confluence.get_all_pages_from_space(space, start=0, limit=100, status=None, expand=None, content_type='page')
Normally you would wrap this call with a While loop that checks if the number of items returned is equal to the limit you set. If it is continue, if it is not then you have them all.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.