sspeiser / onenote-export

https://sspeiser.github.io/onenote-export
MIT License
21 stars 3 forks source link

Exporting files stuck at some point #4

Open jegornagel opened 2 years ago

jegornagel commented 2 years ago

Downloading of files starts successfully but stops reaching some size. As you can see below. I tried different accounts and tried exporting by "sections" not by "notebooks". It stops anyway.

image

sspeiser commented 2 years ago

Hi, I still don't have a good number where "too large to export" starts and it depends on your specific system but my only suggestion for now is to work with sections smaller than maybe 50 MB and downloading each section individually. If you only have sections that are larger, consider splitting them into smaller sections. I know that this is quite a lot of manual effort. There are better solutions to save data from the web browser in development right now but at the moment no capacity from my side to experiment with those. Good luck and let us know if it works!

gkarachuk commented 2 years ago

Hi. I tried this today, but I seem to be getting malformed zip files. Whether smaller or larger, the routine generates a zip file which, in the directly, has a size, but when I try to extract it, the extract fails. Any thoughts on what is happening?

sspeiser commented 2 years ago

I have not encountered the invalid zip files before. My only advise is to try another browser (Firefox, Chromium). I need to update several used libraries in this application but the problem is that the individual updates are incompatible to each other and so far I could not figure out a clear migration path. As long as that persists, there is no way to do any updates.

gadelkareem commented 1 year ago

same problem here. Wouldn't it be easier to run this from command line by converting the .one file into html?

gadelkareem commented 1 year ago

I checked the code, and it looks like a M$ API problem:

Screenshot 2022-09-24 at 04 46 32

Maybe a chrome extension is an easier path.

sspeiser commented 1 year ago

Thanks. I think the solution to this issue is relatively easy to implement but I'm currently working on updating the codebase to the dependencies. There are a lot of breaking changes, so I guess it will take some time :-/

sspeiser commented 1 year ago

Command Line and .one file is probably much easier. This is intended for Mac users who don't have the .one file and as a proof of concept for me that we can build such an application purely in the browser without storing anything on a server or even having a server component other than a static HTTP server.

gadelkareem commented 1 year ago

Thanks for the reply @sspeiser. I found a python script that does exactly that https://github.com/Danmou/onenote_export but exports only to html so maybe we just need to add enex option.

gadelkareem commented 1 year ago

Works now! https://github.com/gadelkareem/onenote_export