Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to read tables of the page, not the whole content


Screenshot 2022-05-21 at 12.37.57 AM.png

API I am using is like -> | python -mjson.tool

I have an example, like above on the confluence page. By using API I can read this page. But the HTML returned from the confluence API is too large and the whole HTML page. I want to read only the table (or tables) of the page. The response can be HTML or JSON, I am fine with both. 

Could you please help. 

1 answer

You need to extract the content of the HTML page. This is not something you would easily do on a command line in shell. You will need to properly script a solution using a HTML parser (probably in python) and get the content of each column within the confluence page content of that table. Then you can translate the output to whatever format you prefer.

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you