The Confluence.get_all_pages_from_space() implementation is wrong.
Based on the official document https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-spaces-id-pages-get, the url should be url = "https://{your-domain}/wiki/api/v2/spaces/{id}/pages". But in the code, the url is url = "rest/api/content".