Simple CasperJS Example
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
hacker-news.js

README.md

Simple CasperJS Example

This is a really simple example of using CasperJS to navigate around a webpage.

Requirements

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

Execution

To call the CasperJS script from the command line:

casperjs hacker-news.js