Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
require 'rubygems' require 'scrubyt' require 'icalendar' require 'date' # enable logging Scrubyt.logger = Scrubyt::Logger.new # extract! movie_data = Scrubyt::Extractor.define do fetch "http://www.film.at/filmstarts.php" # wrapper movie_stuff "/html/body/div/div/table", { :generalize => true } do date_name "/tr/td/span/div/a/b[1]" description "/tr/td/span/div[2]" end # get items from the other pages as well next_page "a[weiter]", :limit => 3 end puts movie_data.to_xml
From the Design Piracy series on my blog: