I need to save a webpage. Using mechanize, I can save the HTML of the root page. However, there are many scripts that run after the page is loaded, filling several parts of the page with data that I would like to save to file.
I'm pretty sure I've seen that a library exists for this, but I can't remember the name, nor find it in my myriad searches. I think I saw that there is a library that acts just like a web browser, allowing it to load a page, run any JS scripts that need to be run, and then return the final page, as would be displayed in a real browser.
I'm not sure if it was python 2 or 3, but either would work.