From: Vipin Vm Date: 2008-12-05T15:49:33+09:00 Subject: Re: How to extract links of a particular class type Hi Peter, I need to fetch some information from http://www.ebay.in. My required fields are : Name of the product, Image, Price and the link to that product. am able to get the data using this method. require 'rubygems' require 'scrubyt' google_data = Scrubyt::Extractor.define do fetch 'http://www.ebay.in' fill_textfield 'satitle', 'ipod shuffle' submit record "/html/body/div[2]/div[4]/div[2]/div/div/div[2]/div[2]/div/div/div[3]/div/div/table/tr" do name "/td[2]/div/a" price "/td[5]" image "/td/a/img" do url "src", :type => :attribute end link "/td[2]/div/a" do url "href", :type => :attribute end end end google_data.to_xml.write($stdout, 1) but my problem is for some products its not working properly. (div may be changed). is there any better solution for this? Thanks in advance, Vipin -- Posted via http://www.ruby-forum.com/.