I want to download an image present in the webpage using nodejs and phantomjs. Currently I am using npm module phantom
phantom = require('phantom'),
I tried using webshot where in I can take screenshot of the webpage but also specify if we want to capture only part of the screenshot but its not very clear. Is there an easy way I can download directly like google image from google.com which is present at
document.getElementsByTagName('img')[1]