0.1.5 • Published 11 years ago
casper-crawl v0.1.5
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-crawlBasic Usage : Testing a single page
casperjs crawl.js http://my-website.comTesting multiple pages on a website
casperjs crawl.js http://my-website.com --pages=about,contact,careers/applyThis will test for broken urls on
http://my-website.com/abouthttp://my-website.com/contacthttp://my-website.com/careers/apply
Passing in http authentication variables
casperjs crawl.js http://my-website.com --httpUser=username --httpPassword=passwordDealing with ssl issues over https
casperjs crawl.js --web-security=no --ignore-ssl-errors=true https://localhost:4000