class Ginspider::Main

Public Class Methods

crawl(url, options = {}) click to toggle source

get the basic response

# File lib/ginspider/main.rb, line 13
def self.crawl(url, options = {})
  basic_res = basic_res(url)
  return basic_res
end
crawl_with_noko(url, options = {}) click to toggle source

define the main crawler

# File lib/ginspider/main.rb, line 20
def self.crawl_with_noko(url, options = {})
  noko_res = Analysis.noko_res(url)
  return noko_res
end
text_of(url, options = {}) click to toggle source

define the main method to get all texts

# File lib/ginspider/main.rb, line 36
def self.text_of(url, options = {})
  res_text = Analysis.res_text(url, options)
  return res_text
end

Private Class Methods

basic_res(url, options = {}) click to toggle source

get the basic response

# File lib/ginspider/main.rb, line 46
def self.basic_res(url, options = {})
  @basic_res = Http.basic_res(url)
  return @basic_res
end