Screenshot capture with NodeJS, PhantomJS and Heroku

Screenshot capture with NodeJS, PhantomJS and Heroku

Closed - This job posting has been filled and work has been completed.

Job Description

I need a NodeJS script to be hosted in Heroku and using PhantomJS for capturing a screenshot of a page.

The script interface should listen for capture requests via HTTP and return a PNG image as response. The parameter "target" would be the URL that needs to be captured.

Example:

Action:
http://sample.herokuapp.com/capture?target=http://google.com

Expected response:
200 OK (and the binary PNG image of the screenshot)


The "target" parameter may have querystring parameters. For example:

http://sample.herokuapp.com/capture?target=http://google.com%3Fq%3Dsample

should browse

http://google.com?q=sample

Please begin your bid with the word "shottas" to avoid marking your bid as spam.

See these links for more info (the example app doesn't exactly do what I want but it may be useful for you to learn more about how to do it).

http://www.slideshare.net/shinichitomita/phantomjs-screenshot-server-on-heroku

http://stackoverflow.com/questions/12607209/is-there-a-working-nodejs-phantomjs-heroku-buildpack

http://stackoverflow.com/questions/12957239/using-the-webpage-phantom-module-in-node-js

UPDATE: This is a specific and very short-term task so no upfront payments, hope you understand. Also, I expect the candidate confident to be capable of doing this, to show me the working script in a running Heroku instance and then I'll submit payment after getting and reviewing the source files.

Thank you for your bidding!