Skip to content

Instantly share code, notes, and snippets.

@siuying
Created May 31, 2009 17:52
Show Gist options
  • Save siuying/120962 to your computer and use it in GitHub Desktop.
Save siuying/120962 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'scrubyt'
# Find avaliable schedules
schedules = Scrubyt::Extractor.define do
fetch "http://www.cinema.com.hk/revamp/html/movie_ticketing.php?lang=c&mode=ticketing"
cinema "//select[@class='show_pulldown']" do
schedule "//option/@value"
end
end
puts schedules.to_xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment