- Notion Markdown Exporter using official notion api by notion-sdk-py
- Improved exporting speed by using MultiThreading
-
Before getting started, create an integration and find the token. โ Learn more about authorization.
-
Then save your api key(token) as your os environment variable
$ export NOTION_TOKEN="{your integration token key}"
$ pip install notion2md
notion2md -p ~/MyBlog/content/posts -u https://notion.so/...
from notion2md.exporter import block_exporter
#output_path is optional
block_exporter("id of notion page","OutPut Path(Relative)")
- Page Exporter
- Database Exporter
- export file object(image and files)
- export child page
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.