module SpiderBot
coding: utf-8
Constants
- VERSION
Public Class Methods
crawl(url, options = {}, &block)
click to toggle source
# File lib/spider_bot.rb, line 13 def crawl(url, options = {}, &block) crawl_instance = Crawl.new(url, options) return crawl_instance.crawl_data if !block_given? crawl_instance.instance_eval &block end
logger()
click to toggle source
# File lib/spider_bot.rb, line 19 def logger SpiderBot::Logging.logger end
logger=(log)
click to toggle source
# File lib/spider_bot.rb, line 23 def logger=(log) SpiderBot::Logging.logger = log end