From: "Alexandru E. Ungur" Date: 2006-04-17T06:27:09+09:00 Subject: Re: How extract data from a web site? >>> sender: "Ingo Weiss" date: "Mon, Apr 17, 2006 at 06:12:00AM +0900" << Hi, > > I would like to use Ruby to read the content of a web site, and then > extract certain data from it. The site is machine generated so the > format doesnt' change, but unfortunately it is far from being valid > XHTML or similar. > > What would be the easiest way to get there? I guess I need some kind of > HTML parser, or? How to I read a web site into Ruby in the first place? Hi, Well for starters you could use your human interface to connect to the Ruby-talk archives and look there for the answer... :) No offence, but I'm on this list only for about two months, but this question was already asked about a million times... :) Anyway, Rubyful Soup should make you happy: http://www.crummy.com/software/RubyfulSoup/ All the best, Alex