brenden / node-webshot

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

HTML parsing before shot? #214

Open FerusAndBeyond opened 7 years ago

FerusAndBeyond commented 7 years ago

Hi, I'm wondering if there is any way to extract information form the page with cheerio and then only sometimes take a screenshot? Since the callback is serialized into phantom at first glance this doesnt seem to be possible? Feels like a waste to first do a request for the html, extract info, and then make another one via phantom to take the screenshot.