Module: Ginspider

Defined in:
lib/ginspider.rb,
lib/ginspider/http.rb,
lib/ginspider/main.rb,
lib/ginspider/version.rb,
lib/ginspider/analysis.rb

Defined Under Namespace

Classes: Analysis, Http, Main

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

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

the api method to crawl a website, and get the basic response



9
10
11
# File 'lib/ginspider.rb', line 9

def Ginspider.crawl(url, options = {})
  Main.crawl(url, options)
end

the api method to get all links with url and options



16
17
18
# File 'lib/ginspider.rb', line 16

def Ginspider.links_of(url, options = {})
  Main.links_of(url, options)
end

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

the api method to get text with url and options



23
24
25
# File 'lib/ginspider.rb', line 23

def Ginspider.text_of(url, options = {})
  Main.text_of(url, options)
end