From: James Britt Date: 2006-03-28T13:05:56+09:00 Subject: Re: Waiter, there's a noob in my soup! Jeff Pritchard wrote: > Thanks Gene, but I don't know which end is up with Python. I'm an old C > dog trying to learn a new (ruby) trick. Would rather not use up any of > my precious few functional neurons with Python. > > Anybody have a Ruby example of grabbing html pages from a site map full > of links, or an example of using the RubyfulSoup package to grab text > pieces from html pages? I build the RubyStuff.com site by snarfing a series of Cafe Press pages, grabbing out links and product descriptions, and reassembling them into a more cohesive set of pages. I wrote about it here: http://neurogami.com/cafe-fetcher/ What I like about Mechanize (though this may also be true of RubyfulSoup; I've not used it) is that it makes it easy to take the slurped page parts and create objects that better map to my business logic. -- James Britt Judge a man by his questions, rather than his answers. - Voltaire