Skip to content

Instantly share code, notes, and snippets.

@jaigouk
Created January 5, 2009 12:53
Show Gist options
  • Select an option

  • Save jaigouk/43380 to your computer and use it in GitHub Desktop.

Select an option

Save jaigouk/43380 to your computer and use it in GitHub Desktop.
# This script runs ok with firewatir.
require 'rubygems'
require 'scrubyt'
Scrubyt.logger = Scrubyt::Logger.new
property_data = Scrubyt::Extractor.define :agent => :firefox do
fetch 'http://merbivore.com/documentation/current/doc/rdoc/stack/index.html?a=F00000098&name=README'
doc "//div[@id='rdocContent']"
end
File.open('output.txt', 'w') do |out|
out << property_data.to_xml
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment