Comment Comment by mikaelmorvan The main problem with your code is that you only handle simple web1 site.What about javascript execution ? If you replay your capture, you have no idea of what you will see on general Web2 website.The only way I know to capture a web page properly is to "execute" it on a browser.Gildas, the guy behind SingleFile (https://github.com/gildas-lormeau/SingleFile) is well aware of that and his approach realy works everytime.Try on a Facebook post, a Tweet, ... It just works. parent mikaelmorvan 7 years ago
What about javascript execution ? If you replay your capture, you have no idea of what you will see on general Web2 website.
The only way I know to capture a web page properly is to "execute" it on a browser.
Gildas, the guy behind SingleFile (https://github.com/gildas-lormeau/SingleFile) is well aware of that and his approach realy works everytime.
Try on a Facebook post, a Tweet, ... It just works.