1

I need to save what's already in the DOM, without triggering a reload or re-executing JavaScript. Is this possible? I don't care if a specific browser is required.

The problem is that I have to record the contents of a page that I see after filling in a reCAPTCHA. So, for the sake of argument, I fill in the reCAPTCHA, and I see a table. How do I save that table locally? I don't need any styling or the CSS - just the HTML.

The things I've tried:

  1. 'Save As'. If I save as a single web page, I normally get the correct data. However, sometimes I just get a reCAPTCHA challenge instead

  2. View the page source. This always shows the correct page. I can then attempt to save the page source, but I get exactly the same problem as before. Note this answer, which says that this should work, but I agree with the OP that it doesn't (consistently)

  3. View the page source, and copy-and-paste the HTML. This always works, of course, but is too difficult to do for a few hundred pages. Similarly, getting the source from the dev tools is too difficulty (this procedure has to be carried out by a non-technical user)

If I turn on the dev tools in either Firefox or Chrome, there's no network activity for a page save for (1) or (2), so it appears that the browser isn't attempting to re-fetch the page. However, this doesn't really make sense, so I assume it's re-fetching under the hood.

EML
  • 498

1 Answers1

0

You can use an extension like Save Page WE which lets you save what's currently visible.

  1. Scroll to the bottom of the page as recommended by the author for higher accuracy.
  2. Right mouse button on the page -> Save Page WE -> Save Selected Tabs -> e.g. Standard Items
  3. Choose location of the .html file.
Destroy666
  • 12,350