Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
pyatlassian 0.3.2 documentation
Logo
pyatlassian 0.3.2 documentation
  • pyatlassian Public APIs
  • Implementation Guidelines
  • AI Powered Development Workflow
Back to top
View this page

utils¶

pyatlassian.atlassian_confluence.utils.extract_page_id_and_space_key_from_url(url: str) → tuple[int, str][source]¶

Extract page id (123456) and space key (ABC) from the URL like this

  • https://mycompany.atlassian.net/wiki/spaces/ABC/pages/edit-v2/123456

  • https://mycompany.atlassian.net/wiki/spaces/ABC/pages/123456/This+Document+Is+Awesome

Copyright © 2025, Sanhe Hu
Made with Sphinx and @pradyunsg's Furo
On this page
  • utils
    • extract_page_id_and_space_key_from_url()