3 ms·
I’d love to have a viewer for this or converter to a standard html single page archive that works in other browsers too. Is there some reason for apple’s propri
by savolai 2y ago
I’d love to have a viewer for this or converter to a standard html single page archive that works in other browsers too. Is there some reason for apple’s proprietary to exist over self contained html? I have a bunch of apple webarchives too (stored from
ios to notion) and am worried if there is no durable solution to open these beyond ”code it yourself”.
- Springtime 2y ago> I’d love to have a viewer for this or converter to a standard html single page archive that works in other browsers too About 10 years ago I searched and found a webarchive to MHTML converter from someone's small site. I recall there was one caveat, something like it didn't include the date in the metadata of the output MHTML. Sorry I don't have the link on-hand, it'd be on the HDD I pulled from my old Macbook. Edit: found an alternative script from my notes: https://blog.iefdev.se/2016/01/converting-webarchive-to-mht/ https://blog.iefdev.se/2016/01/converting-webarchive-to-mht/ Edit 2: pretty sure this is the original converter, since I noted a caveat that it outputs the timestamp of the conversion not the time the file was originally saved (the script above handles this correctly otoh). https://langui.net/webarchive-to-mht/ https://langui.net/webarchive-to-mht/
- lacop 2y agoUnfortunately I don't think browsers handle opening MHTML well out of the box. At least last time I checked in only worked for local paths (file://) and only some browsers. Otherwise it would either try to download or just show plain text. I ended up using Chrome to dump to MHTML [1] and then reshuffle the content into individual files, rewriting the path references and fixing mime types [2]. That gives a reasonably faithful static capture of a page that can be shared as link. [1] https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-captureSnapshot https://chromedevtools.github.io/devtools-protocol/tot/Page/... [2] https://github.com/lacop/udrb/blob/master/app/src/chrome/mod.rs#L116 https://github.com/lacop/udrb/blob/master/app/src/chrome/mod...
- deleted 2y ago[deleted]
- tedmiston 2y agoSomething like ArchiveBox or SingleFile are in the same ballpark of tools, but SingleFile at least seems to eschew Safari Webarchive as a format. ArchiveBox may support Safari webarchives, but for some reason they omit it in their docs. https://github.com/gildas-lormeau/SingleFile?tab=readme-ov-file#file-format-comparison https://github.com/gildas-lormeau/SingleFile?tab=readme-ov-f... https://archivebox.io/#output-formats https://archivebox.io/#output-formats