Method: Arachnid2#crawl
- Defined in:
- lib/arachnid2.rb
#crawl(opts = {}, with_watir = false) ⇒ Object
Visits a URL, gathering links and visiting them, until running out of time, memory or attempts.
108 109 110 111 112 113 114 |
# File 'lib/arachnid2.rb', line 108 def crawl(opts = {}, with_watir = false) if with_watir crawl_watir(opts, &Proc.new) else Arachnid2::Typhoeus.new(@url).crawl(opts, &Proc.new) end end |