Module: Wombat
- Defined in:
- lib/wombat.rb,
lib/wombat/crawler.rb,
lib/wombat/dsl/headers.rb,
lib/wombat/dsl/follower.rb,
lib/wombat/dsl/iterator.rb,
lib/wombat/dsl/metadata.rb,
lib/wombat/dsl/property.rb,
lib/wombat/processing/parser.rb,
lib/wombat/dsl/property_group.rb,
lib/wombat/property/locators/base.rb,
lib/wombat/property/locators/html.rb,
lib/wombat/property/locators/list.rb,
lib/wombat/property/locators/text.rb,
lib/wombat/processing/node_selector.rb,
lib/wombat/property/locators/follow.rb,
lib/wombat/property/locators/factory.rb,
lib/wombat/property/locators/headers.rb,
lib/wombat/property/locators/iterator.rb,
lib/wombat/property/locators/property_group.rb
Defined Under Namespace
Modules: Crawler, DSL, Processing, Property
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.proxy_args ⇒ Object
Returns the value of attribute proxy_args.
8
9
10
|
# File 'lib/wombat.rb', line 8
def proxy_args
@proxy_args
end
|
Class Method Details
16
17
18
|
# File 'lib/wombat.rb', line 16
def configure
yield self
end
|
.crawl(&block) ⇒ Object
Also known as:
scrape
10
11
12
13
14
|
# File 'lib/wombat.rb', line 10
def crawl(&block)
klass = Class.new
klass.send(:include, Wombat::Crawler)
klass.new.crawl(&block)
end
|
.set_proxy(*args) ⇒ Object
20
21
22
|
# File 'lib/wombat.rb', line 20
def set_proxy(*args)
@proxy_args = args
end
|