This is a really simple example of using CasperJS to navigate around a webpage.
This example assumes you are running on OSX.
Install node.js.
brew install node
Install CasperJS using npm
. For this simple example, we use the -g
call to install CasperJS globally.
npm install -g casperjs
To call the CasperJS script from the command line:
casperjs hacker-news.js