Hi Peter, Thanks for the Help... its working fine :) Vipin Peter Szinek wrote: > You need to create smarter XPaths, relying on CSS id/class attributes > or other properties rather than a full XPath from the root - for > example: > > require 'rubygems' > require 'scrubyt' > > ebay_data = Scrubyt::Extractor.define do > > fetch 'http://www.ebay.in/' > fill_textfield 'satitle', 'ipod' > submit > > record "//table[@class='nol']" do > name "//td[@class='details']/div/a" > end > end > > puts ebay_data.to_xml > > etc. > > This way your scraper will be more robust and prone to page changes. > > HTH, > Peter > ___ > http://www.rubyrailways.com > http://scrubyt.org -- Posted via http://www.ruby-forum.com/.