James Britt wrote: > Austin Ziegler wrote: > >> >> Very cool, James. Be warned, though, that Google frowns on "screen >> scraping", preferring people to use the SOAP API. > > > Yes, well that's one reason it is not linked from the main ruby-doc page. > > I started of thinking I would just add a way to do a straight-up Google > search, limited to the ruby-doc.org site, but was unhappy with the > resulting page being, well, another site. > > Framing the search results page seemed undesirable, so I thought about > scrapping the results. Curiously enough, while putting this page up on > ruby-doc.org, I came across some old code that did actually use the > Google API, but apparently some required files were lost in assorted > site moves and upgrades. > > Anyway, I though this was a neat enough demo of how easy it is to use > Mechanize that I should share it. How the actual search page ends up is > another matter. Time to go find my Google API key perhaps. Would you like to share the code with us? Should I include it as an example into WWW::Mechanize? Regards, Michael