brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

Multiple screenshots from same request? #67

Closed phobia closed 10 years ago

phobia commented 10 years ago

Hi,

I'd like to take a screenshot of a site's current state, then inject some js, and take another screenshot.

Is that possible with node-webshot?

I could do two calls to webshot, but that would also mean two requests (?), in which case the page might not look the same (different ads etc.).

brenden commented 10 years ago

For something like this you might want to try a general purpose phantomjs wrapper (e.g. phantomjs-node). Otherwise, yes you would need to make two separate calls and the page might not be the same across both of them.