confluence = Confluence(url=conf_site, username=conf_user, password=conf_passwd)
pg = confluence.get_page_by_id(page_id, expand='body.storage')
pg_content = pg['body']
pg_content = pg['body'] throws error as:
page_content = page['body']
TypeError: string indices must be integers
Can you please help me to fix this issue?