Reputation: 663
In browsers you can 'save as' a page, and get the current html after the javascript has executed. Is there a way to do this programmatically? Call some other tool perhaps? Maybe remotely make the browser do something? It can be hacky - I just need it for home usage.
Upvotes: 1
Views: 905
Reputation: 143
Depends if you want to 'save as' page or if you want to take scereenshot after javascript is executed. Its two different things.
In first case you can use simple wget -r <web address>
wiki
In second case you will need to use some more sophisticated scraper lets say phantom js should be able to execute js and after take a screenshot: http://phantomjs.org/screen-capture.html
Hope it helps! Have a nice day
Upvotes: 1