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
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
-
.crawl(url, options = {}) ⇒ Object
the api method to crawl a website, and get the basic response.
-
.links_of(url, options = {}) ⇒ Object
the api method to get all links with url and options.
-
.text_of(url, options = {}) ⇒ Object
the api method to get text with url and options.
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, = {}) Main.crawl(url, ) end |
.links_of(url, options = {}) ⇒ Object
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, = {}) Main.links_of(url, ) 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, = {}) Main.text_of(url, ) end |