Compared to that is there anything kage does better?
Show HN: Kage – Shadow any website to a single binary for offline viewing
41–50 of 152 posts
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#42https://github.com/jart/cosmopolitan
https://justine.lol/cosmopolitan/index.html
(Certificates just expired for justine's website, just ignore the warning.)
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#43> kage serve $HOME/data/kage/paulgraham.com If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like: $ firefox $HOME/data/kage/paulgraham.com Then the result would be useable on machines without kage nstalled.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#44I find SingleFile [0] to be a much more robust version of this. It strips out all the JavaScript too, but also packs everything into a single HTML file that is easy to transfer. Binary assets (like web fonts and images) are packed as base64 strings. They also offer a CLI powered by Puppeteer. [1] [0]: https://github.com/gildas-lormeau/singlefile [1]: https://github.com/gildas-lormeau/single-file-cli
That said, Kage looks promising if OP can combine SingleFile reproduction quality with the HTTPTrack spidering approach. SPA's are kinda tricky with archiving and do wonder how well Kage would handle that
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#45I find SingleFile [0] to be a much more robust version of this. It strips out all the JavaScript too, but also packs everything into a single HTML file that is easy to transfer. Binary assets (like web fonts and images) are packed as base64 strings. They also offer a CLI powered by Puppeteer. [1] [0]: https://github.com/gildas-lormeau/singlefile [1]: https://github.com/gildas-lormeau/single-file-cli
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#46> kage serve $HOME/data/kage/paulgraham.com If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like: $ firefox $HOME/data/kage/paulgraham.com Then the result would be useable on machines without kage nstalled.
Usually JavaScript is blocked when you load pages that way.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#47For those with an eReader, one thing that works really well is using pandoc to download and convert a webpage to EPUB that you can then load to your reader. pandoc --from html --to epub --output /PATH/TO/FILE.epub https://example.com
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#48> kage serve $HOME/data/kage/paulgraham.com If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like: $ firefox $HOME/data/kage/paulgraham.com Then the result would be useable on machines without kage nstalled.
You’ll likely run into a ton of CORS issues doing that.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#49> kage serve $HOME/data/kage/paulgraham.com If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like: $ firefox $HOME/data/kage/paulgraham.com Then the result would be useable on machines without kage nstalled.
Usually JavaScript is blocked when you load pages that way.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#50> kage serve $HOME/data/kage/paulgraham.com If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like: $ firefox $HOME/data/kage/paulgraham.com Then the result would be useable on machines without kage nstalled.
Usually JavaScript is blocked when you load pages that way.