From: Sita Rami Reddy Date: 2008-11-18T03:17:43+09:00 Subject: How to extract links of a particular class type ------=_Part_33246_13095431.1226946072424 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a web page which has n number of links. The only i can differentiate links is with their class attribute. I need the extract the set of links and their titles of a particular class type. I tried using scrubyt exractor, dont have idea where to specify the class type. google_data = Scrubyt::Extractor.define do fetch 'http://www.google.com/' fill_textfield 'q', 'ruby' submit link "Ruby programming language" do url "href", :type => :attribute end junk = google_data.to_xml And how to get the output in text/string format. -- Sita Rami Reddy P ------=_Part_33246_13095431.1226946072424--