Class: Ginspider::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/ginspider/main.rb

Class Method Summary collapse

Class Method Details

.crawl(url, options = {}) ⇒ Object

get the basic response



13
14
15
16
# File 'lib/ginspider/main.rb', line 13

def self.crawl(url, options = {})
  basic_res = basic_res(url)
  ap basic_res
end

.crawl_with_noko(url, options = {}) ⇒ Object

define the main crawler



20
21
22
23
# File 'lib/ginspider/main.rb', line 20

def self.crawl_with_noko(url, options = {})
  noko_res = Analysis.noko_res(url)
  ap noko_res
end

define the main method to get all links



28
29
30
31
# File 'lib/ginspider/main.rb', line 28

def self.links_of(url, options = {})
  res_links = Analysis.res_links(url, options)
  ap res_links
end