casper-crawl
v0.1.5
Published
crawls one or more pages on your site and tests for broken anchor, link, script and image links
Downloads
4
Readme
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