On Sun, 23 Jan 2005 13:45:02 +0900, James Britt <jamesUNDERBARb / neurogami.com> wrote: > I thought I would see about adding some search function to > ruby-doc, and ended up taking Mike Neumann's WWW::Mechanize[0] for > a test drive. > > Sweet it be, as it took almost no time to get running code that > takes search words, queries Google, parses the results, and > creates a new page page. > > Try it here: > > http://www.ruby-doc.org/gs.rb/REXML%20pullparser > http://www.ruby-doc.org/gs.rb/Timeout > http://www.ruby-doc.org/gs.rb/testunit+assert > > I had to hack Mechanize to have it grab 'p' elements, but it is > dead easy to do. > > Nice work, Herr Neumann. And a tip of the hat to folks behind > Narf, whose htmltools are needed for WWW::Mechanize. Very cool, James. Be warned, though, that Google frowns on "screen scraping", preferring people to use the SOAP API. > [0] http://www.ntecs.de/blog/Blog/WWW-Mechanize.rdoc -austin -- Austin Ziegler * halostatue / gmail.com * Alternate: austin / halostatue.ca