vzhd1701 / enex2notion

Import Evernote ENEX files to Notion
MIT License
424 stars 35 forks source link

[Feature request]: Create a fast mode #73

Open pedrosimao opened 1 year ago

pedrosimao commented 1 year ago

Suggestion

enex2notion currently adds block by block of content, making it quite slow. While reading the Notion API docs I found that Pages/Database entries can be created with all blocks defined in the children property all at once. I imagine there must be a limitation for this method, since it was not used by the library. So, what about creating a --fast mode that predefines all blocks in only one Page/DB creation request? If there are limtation we can just list them in the documentation.

gubenkoved commented 11 months ago

It would be really nice to hear from author why this API is not being used (POST https://api.notion.com/v1/pages as far as I understand).

Could be a good candidate for a community PR if author thinks that is reasonable direction to go, but simply does not have time/interest in making it done.

PS. I am not a big note taker but migrating my notes is taking me more than 12h already (and it is about half completed).

vzhd1701 commented 11 months ago

I am planning to switch to the official API later. Currently it has some limitations, most notably it lacks a file upload function which will prevent users from uploading notes with pictures and files.

tastyratz commented 9 months ago

Could those notes which are limited be detected and handled accordingly while the ones which don't require block based utilize the new API?