Cobertos / md2notion

A better Notion.so Markdown importer
MIT License
654 stars 65 forks source link

Does this module stiil works? #54

Closed kebuAAA closed 1 year ago

kebuAAA commented 1 year ago

I paste my page url in the example code:

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?

protoEvangelion commented 1 year ago

@kebuAAA this fixed it for me: https://github.com/Cobertos/md2notion/issues/40