Sha256: 4d30405ec9512d21f43f43bced5a4edb429aa78b185293acc477a7d04b2d5f66
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 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 :username, "HTT Basic Username", :type => :string opt :password, "HTT Basic Password", :type => :string opt :wait, "Number of seconds to wait betweet requests", :default => 3 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).validate
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rawler-0.1.0 | bin/rawler |