Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You want to use Google's web services to perform searches and grab their results within your Ruby application.
Google exposes a SOAP API to its search functionality, and some other miscellaneous methods like spellcheck. Call these methods with the SOAP client that comes with Ruby's standard library: