Skip to content
Site Link Analyzer - command line broken links checker
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
mock
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE
README.md
Runfile
sla.gemspec

README.md

Site Link Analyzer

Gem Version Build Status Maintainability


SLA is a simple broken links checker, with built in caching.


Install

$ gem install sla

Or with bundler:

gem 'sla'

Features

  • Easy to use command line interface
  • Built in caching, to avoid overtaxing the server
  • Outputs the site tree to screen and log file

Example Output

$ sla check localhost:3000
1 200 - http://localhost:3000
2 200 -- /whiskey
3 200 --- /whiskey/tango
4 404 ---- /whiskey/tango/foxtrot
5 200 -- /ten
6 200 --- /ten/four
7 200 -- /roger
Done with 1 failures

Usage

$ sla --help
SLA

Usage:
  sla check DOMAIN [options]
  sla (-h|--help|--version)

Commands:
  check
    Start checking for broken links on a given domain
  
Options:
  --depth, -d DEPTH
    Set crawling depth [default: 5]

  --cache, -c LIFE
    Set cache life [default: 1d]. LIFE can be in any of the 
    following formats:
      10  = 10 seconds
      20s = 20 seconds
      10m = 10 minutes
      10h = 10 hours
      10d = 10 days

  --cache-dir DIR
    Set the cache directory

  --external
    Also check external links

  --no-color
    Disable colors in output

  --no-log
    Disable logging

  --log LOGFILE
    Set the name of the logfile [default: sla.log]

Examples:
  sla check example.com
  sla check example.com -c10m -d10
  sla check example.com --cache-dir my_cache --no-log
  sla check example.com --depth 10 --log my_log.log
  sla check example.com --cache 30d
You can’t perform that action at this time.