Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Latest commit

 

History

History
43 lines (28 loc) · 1.59 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.59 KB

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.