Api for taking screenshots of websites
You must install [node] (https://nodejs.org/en/) and [npm] (https://www.npmjs.com/) on machine you want to run api on.
Additionally, you must have phantomjs globally available. You can set it up by running:
npm install -g phantomjs
npm install
node server.js
/api/screenshot/:url
where url is a url to the page you want to render. Url has to be encoded when passed in.
This endpoint additionally accepts url params, which determine the viewport size. w is param for width and h will determen height. If not passed in, default size will be 800x600.