Class: ZyCrawler
- Inherits:
-
Object
- Object
- ZyCrawler
- Defined in:
- lib/zy_crawler.rb
Overview
ZyCrawler is from Jason zhao’s YzCrawler
Instance Method Summary collapse
- #crawl ⇒ Object
-
#initialize ⇒ ZyCrawler
constructor
A new instance of ZyCrawler.
Constructor Details
Instance Method Details
#crawl ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/zy_crawler.rb', line 14 def crawl if @argument_parser.crawl_type == CommandLineArgumentParser::WEB_CRAWLER @spider.crawl_web(@url_store.get_urls, @argument_parser.crawl_depth, @argument_parser.page_limit) else @spider.crawl_domain(@url_store.firt_url, @argument_parser.page_limit) end end |