Sha256: 8c64f1b460cebf504d87340186f01f26291c3da8936384f9cf0f9594d253da4e

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

require 'rubygems'
require 'net/http'
require 'net/https'
require 'nokogiri'
require 'logger'

require 'rawler/core_extensions'

module Rawler
  VERSION = '0.0.8'
  
  mattr_accessor :output
  mattr_accessor :url
  
  mattr_accessor :username, :password
  
  autoload :Base, "rawler/base"
  autoload :Crawler, "rawler/crawler"
  autoload :Request, "rawler/request"

  def self.url=(url)
    url.strip!

    if (url =~ /http:\/\//) != 0
      url = 'http://' + url
    end

    @@url = url
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawler-0.0.8 lib/rawler.rb