Sha256: b64f9e9985bc51fa7da4cc9d9222490141221e448834ee657c7e5c9c20fc1f7b

Contents?: true

Size: 798 Bytes

Versions: 2

Compression:

Stored size: 798 Bytes

Contents

#!/usr/bin/env ruby

require 'rawler'
require File.join(File.dirname(__FILE__), '..', '/vendor/lib-trollop.rb')

opts = Trollop::options do
  version "rawler 0.0.3 (c) 2011 Oscar Del Ben"
  banner <<-EOS
Rawler is a command line utility for parsing links on a website

Usage:
      rawler http://example.com [options]

where [options] are:
EOS
  
  # opt :domain, "domain that you want to test", :type => :string
  opt :username, "HTT Basic Username", :type => :string
  opt :password, "HTT Basic Password", :type => :string
end

domain = ARGV.shift

if domain.nil?
  Trollop::die "Domain name is mandatory. Type --help for help"
else
  Trollop::options do
    opt :domain, "Domain address", :type => :string
  end
end

Rawler::Base.new(domain, $stdout, opts[:username], opts[:password]).validate

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rawler-0.0.5 bin/rawler
rawler-0.0.4 bin/rawler