Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'rubygems' require 'scrubyt' pricegrabber_data = Scrubyt:: Extractor.define do fetch 'http://cameras.pricegrabber.com' fill_textfield 'form_keyword', 'canon EOS 20D' submit camera 'Canon EOS 20D Digital SLR Camera Body Only', :generalize => false do camera_detail do detail_tab 'Product Details', :generalize => false do detail_detail do camera_record :generalize => false do image "http://ai.pricegrabber.com/pi/0/37/48/3748716_125.jpg" do image_url "src", :type => :attribute do download 'camera_images', :type => :download end end name 'EOS 20D Digital SLR Camera Body Only' lowestprice '$649.95' rating_and_reviews :contains => '(Read 31 Reviews)' do rating /(\d\.\d\d \/ \d.\d\d)/ end end end end end end end puts pricegrabber_data.to_xml
This paste will be private.
From the Design Piracy series on my blog: