from notion.client import NotionClient
# Obtain the `token_v2` value by inspecting your browser cookies on a logged-in (non-guest) session on Notion.so
client = NotionClient(token_v2={my token})
# Replace this URL with the URL of the page you want to edit
page = client.get_block("https://www.notion.so/{my_url_id}")
print("The old title is:", page.title)
# Note: You can use Markdown! We convert on-the-fly to Notion's internal formatted text data structure.
page.title = "The title has now changed, and has *live-updated* in the browser!"
running the code above give me a bug that warn me I have a invalid input?
the url in client.get_block isn't the url of my page?
I paste my page url in the example code:
running the code above give me a bug that warn me I have a invalid input? the url in
client.get_block
isn't the url of my page?