3 ms·
This looks nice and relevant to something I've been meaning to explore but haven't had time to yet. I would love to have a tool that can give me an exact dump
by diggan 10y ago
This looks nice and relevant to something I've been meaning to explore but haven't had time to yet.
I would love to have a tool that can give me an exact dump of the actual DOM (and allow me to restore it). I've found some libraries that try to do this, but they are randomly failing so haven't found something foolproof yet. Anyone know of such a tool? Basically, I want a "live" copy of a website, as-is in that moment. Not just the HTML but the actual DOM tree.
- Chris2048 10y ago> exact dump of the actual DOM > I want a "live" copy of a website You mean after the JS has modified it?
- ep123 10y agoThis tool will give you all the html that loads on your first visit to the url. You can insert it in a div's innerHTML, although this would be dangerous since all their scripts would run on your site. You can get the raw response by accessing the Getsy's .content property.
- projct 10y agotools that export .har format do this for you. Chrome has such a thing in the dev tools, for example
- rkv 10y agoTry jsdom[1]? It returns a valid window object and stubs out events to allow DOM manipulation (amongst other things). 1. https://github.com/tmpvar/jsdom https://github.com/tmpvar/jsdom