Skip to content
A Ruby library for spidering web resources.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
test
ChangeLog
README.rdoc
Rakefile
chainsaw.gemspec

README.rdoc

Chainsaw

Description

A Ruby library for spidering web resources.

Features/Problems

Synopsis

Chainsaw.launch('http://example.com/').open { |cs|
  cs.set_next cs.doc.css('#navi a')[2]
}.open { |cs|
  form = cs.doc.xpath('//form')[0]
  input = form.xpath('.//input[@type="text"]')[0]
  input.set_attribute('value', 'blurblur')
  cs.set_next form
}.submit { |cs|
  puts cs.res.status
  cs.doc.search('.//a') do |link| 
    puts link.content
  end
}

Requirements

  • nokogiri

  • httpclient

Installation

gem source -a http://gems.github.com
gem install ucnv-chainsaw

Copyright

Author

ucnv <ucnvvv at gmail.com>

Copyright

Copyright © 2009 ucnv

License

MIT

Something went wrong with that request. Please try again.