Class: Sphinxcrawl::WebCrawler

Inherits:
Crawler
  • Object
show all
Defined in:
lib/sphinxcrawl/web_crawler.rb

Instance Attribute Summary

Attributes inherited from Crawler

#depth

Instance Method Summary collapse

Methods inherited from Crawler

#pages

Constructor Details

#initialize(url, depth = 0) ⇒ WebCrawler

Returns a new instance of WebCrawler.



6
7
8
9
# File 'lib/sphinxcrawl/web_crawler.rb', line 6

def initialize(url, depth=0)
  @uri = URI.parse(url)
  super(depth)
end