md2notion
md2notion copied to clipboard
Rewrite with official Notion API
It would be nice to use notion-sdk-py to rewrite this to target the official API.
Notion API needs to support:
- Creating new pages
- [ ] Creating new pages at root
- [ ] Creating new pages elsewhere
- Creating blocks of type
- [ ] CodeBlock
- [ ] Setting language
- [ ] TextBlock
- [ ] DividerBlock
- [ ] HeaderBlock, SubheaderBlock, SubsubheaderBlock
- [ ] QuoteBlock
- [ ] NumberedListBlock
- [ ] TodoBlock
- [ ] BulletedListBlock
- [ ] CollectionViewBlock
- [ ] and add all rows
- [ ] add titles
- [ ] ImageBlock
- [ ] Uploading image data from URL (or image data, we can fetch it ourselves)
- [ ] EquationBlock
- [ ] CodeBlock
TODO: Gotta fill these in
What's the advantage of using official Notion API over what is currently working?
I'm pretty sure they prefer the official API (I believe at one point they were throttling the old API). That and I don't think notion-py
is maintained anymore
Might be worth using https://github.com/jheddings/notional for this once that has reached sufficient maturity
An unofficial API could break at any time. An official API will be supported and generally won't undergo breaking changes.
Somebody work on this ?