Sha256: 0fda3a380e49b4c548362087ab5830e58bd15057e2157e7ec394b3b644a81755

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require "apify_core/version"
require "apify_core/parser"
require "apify_core/filter"
require "apify_core/fetcher"

module Apify
  module Core
    def self.crawl!( pages, processes=2, delay=0 )
      fetcher = Fetcher.new(pages.with_indifferent_access, processes, delay); nil
      fetcher.prepare; nil
      fetcher.perform; nil
      fetcher
    end

    def self.root
      File.expand_path '../..', __FILE__
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apify_core-0.1.0 lib/apify_core.rb