Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to access particular confluence page url content using Python or Shell script ?

Akshaya Kunnoth June 8, 2018

I'm trying to access a particular table content from a confluence page.  I wanted to implement this using Python BeautifulSoup and it's not working.  So Just wanted to get clarified whether it can be done or not.  Or is there any way in shell to do it ? Most of the similar question's links are not accessible, hence posting it again.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2018

Hello,

You should use Conflunce Rest Api. It can be done in Python or Shell script.

You can read more about Confluence REST API here:

https://developer.atlassian.com/server/confluence/confluence-server-rest-api/

Akshaya Kunnoth June 11, 2018

Hi Alexey,

 

Thanks for the answer.  It worked. Now I need another solution. I'm trying to login to confluence through a python script and retrieve the content.  Do you have an example solution for it ?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2018

It does not mean from which program language you are trying to connect. You still have to pass login credentials. If you connect using basic auth, then you can find an example here:

https://community.atlassian.com/t5/Confluence-questions/How-to-login-to-confluence-using-REST-API/qaq-p/675831

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events