flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze's comments
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
JS can be removed from the final document using the -j flag. HTML Files can also be grepped for content, unlike PDFs.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
It will evolve into a reliable tool in a couple weeks and it should eventually work for embedding everything, including things like web fonts and @url()'s within CSS. If anything doesn't work, please open an issue, I have plenty of time to work on it.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
I personally prefer to hope for the worst. This way when nothing happens I feel extra lucky, and if bad things do happen, I feel proud of being ready for it.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
upd: Done, now forms get their action="/submit" converted into action="https://website.com/submit" when the page is saved.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
I use youtube-dl for youtube and other popular web services myself. Embedding a video source as a data URL could in theory work, but it'd be quite a long base64 line. Also, editing .html files with tens or hundreds of megabytes of base64 in them would perhaps be less than convenient.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
It seems to work for basic pages quite well, I think that lazy load will work for most pages as long as the JavaScript is embedded (no -j flag provided) and the Internet connection is on. It saves what's there when the page is loaded, the rest is a gamble since every website implements infinite scroll differently.
Authentication is another tricky part -- it's different for every browser. I will try to convert it into a web extension of sorts, so that pages could be saved directly from the browser while the user is authenticated.
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file
flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file