Authenticating and view confluence page

I need to access confluence page for an automation project. So far, I’ve only been able to authenticate using cookies as token API didn’t work (I’ve tried both the one here and the google one (my org uses Google account to access Confluence).

This is the curl command I’ve tested:

curl -D-    -u    -X GET    -H "Content-Type: application/json"

All attempts were unsuccessful, except when copying session cookies in my python script.

requests.get('', cookies=cookies) 

Hey @LostNG, did u find any solution. Help me please.