Class: Sphinxcrawl::WebCrawler
- Defined in:
- lib/sphinxcrawl/web_crawler.rb
Instance Attribute Summary
Attributes inherited from Crawler
Instance Method Summary collapse
-
#initialize(url, depth = 0) ⇒ WebCrawler
constructor
A new instance of WebCrawler.
Methods inherited from Crawler
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 |