casper-crawl

0.1.5 • Public • Published

Crawl for CasperJS

A CasperJS script that crawls one or more pages on your site and tests for broken <a>, <link>, <script> and <img> links.

Install Dependencies

Install PhantomJs and CasperJs

Installation

npm install --save casper-crawl

Basic Usage : Testing a single page

casperjs crawl.js http://my-website.com

Testing multiple pages on a website

casperjs crawl.js http://my-website.com --pages=about,contact,careers/apply

This will test for broken urls on

  • http://my-website.com/about
  • http://my-website.com/contact
  • http://my-website.com/careers/apply

Passing in http authentication variables

casperjs crawl.js http://my-website.com --httpUser=username --httpPassword=password

Dealing with ssl issues over https

casperjs crawl.js --web-security=no --ignore-ssl-errors=true https://localhost:4000

Readme

Keywords

Package Sidebar

Install

npm i casper-crawl

Weekly Downloads

0

Version

0.1.5

License

MIT

Last publish

Collaborators

  • jleonard