scrubber / scrubyt_examples

A handful (but hopefully growing amount) of scRUBYt! examples

This URL has Read+Write access

scrubyt_examples / ebay.rb
06324bd2 » scrubber 2008-12-10 The first few extractors! N... 1 #simple ebay example
2
3 require 'rubygems'
4 require 'scrubyt'
5
6 ebay_data = Scrubyt::Extractor.define do
7
8 fetch 'http://www.ebay.com/'
9 fill_textfield 'satitle', 'ipod'
10 submit
11
12 record "//table[@class='nol']" do
13 name "//td[@class='details']/div/a"
14 end
15 end
16
17 puts ebay_data.to_xml