|
|
|
|
|
by chipperyman573
2308 days ago
|
|
>(2) Saves the webpage it points into a git repo (a simple curl should suffice for most websites) FWIW I've done something similar and lots of sites that use a lot of JS (and pretty much every single page webpage like twitter and FB) will not re-render correctly just because you have the files. It actually takes a lot of work to clone a webpage, the best solution I've found so far is to print a PDF from a headless chrome (but this has its own problems, like now you have to deal with a PDF). Even generating the PDF is a lot harder than it seems, at least if you've never done it before, because there are a lot of gotchas (for example, did you know that most websites provide a second stylesheet to be used while printing that makes it look barely messed up, but still clearly broken? I didn't either) |
|
[1] https://github.com/gildas-lormeau/SingleFile/tree/master/cli