Phlip wrote: > Arun Kumar wrote: >> Hi, >> Can anybody tell me how to extract all the hyperlinks given in the >> url:http://scores.sify.com/match/archive/archive.shtml using ruby. I >> want the those urls having the class 'com_blue com_size12 com_arial12'. >> ie. to be more precise >> <a class="com_blue com_size12 com_arial12" href="">, these are the type >> of urls i want to have. > > Use doc = Nokogiri::HTML( my_html ), then something like > doc.css('a.com_blue').each Sorry that doesn't work. Showing an error like this. uninitialized constant Nokogiri (NameError) Regards Arun Kumar -- Posted via http://www.ruby-forum.com/.