/heroku-casper-node

A sample Heroku application that cascades NodeJS on CasperJS, suitable for web scraping and automation.

Primary LanguageJavaScriptMIT LicenseMIT

Heroku app: casper-node

A sample Heroku application that cascades NodeJS on CasperJS, suitable for web scraping and automation.

Note: Spooky do not work with NodeJS v4 and npm v3

Now that phantomjs and casperjs are both available on npm, it is easier to use Node.JS buildpack to install them.

Usage

Example usage:

$ git clone https://github.com/leesei/heroku-casper-node.git

$ cd heroku-casper-node

$ heroku create --stack cedar --buildpack https://github.com/ddollar/heroku-buildpack-multi.git

$ git push heroku master

More info

This application uses buildpack-multi to cascade buildpack-casperjs and buildpack-nodejs.

$ cat .buildpacks 
https://github.com/leesei/heroku-buildpack-casperjs.git
https://github.com/heroku/heroku-buildpack-nodejs

Spooky is used for Casper-Node binding, you can replace it with other module of your choice.

PhantomJS is also available from buildpack-casperjs, you may as well drive it from Node.