title: access confluence page via python script
body: <p>I need to access a Confluence page via python script, but although I found some examples online, I wasn't able to do it.</p>
  <p>Here are a few attempts:</p>
  <pre><code>import requests
  
  urllogin = 'https://myorg/confluence/display/path/to/page'
  login = requests.get(urllogin, auth=('myusername', 'mytoken'))
  print(login.status_code)
  </code></pre>
  <pre><code>from atlassian import Confluence
  
  confluence = Confluence(
      url='https://myorg/confluence/display/path/to/page',
      username='myusername',
      password='mytoken')
  </code></pre>
  <p>It doesn't seem to be a token issue: I tried using an Atlassian API token <a href="https://id.atlassian.com/manage-profile/security/api-tokens" rel="nofollow noreferrer">https://id.atlassian.com/manage-profile/security/api-tokens</a> or <a href="https://console.developers.google.com/apis/credentials" rel="nofollow noreferrer">Google API token</a> (my org uses Google credentials to access Confluence as well). Using login credentials didn't work either.</p>