Comparing Google Results with Those of Other Search Engines

Comparing Google search results with results from other search engines.

True Google fanatics might not like to think so, but there’s really more than one search engine. Google’s competitors include the likes of AltaVista, AlltheWeb, and Teoma.

Equally surprising to the average Google fanatic is the fact that Google doesn’t index the entire Web. There are, at the time of this writing, over 2 billion web pages in the Google index, but that’s just a fraction of the Web. You’d be amazed how much non-overlapping content there is in each search engine. Some queries that bring only a few results on one search engine bring plenty on another search engine.

This hack gives you a program that compares counts for Google and several other search engines, with an easy way to plug in new search engines that you want to include. This version of the hack searches different domains for the query, in addition to getting the full count for the query itself.


This hack requires the LWP::Simple ( module to run.

The Code

#!/usr/local/bin/perl # google_compare.cgi # Compares Google results against those of other search engines # Your Google API developer's key my $google_key='insert key here'; # Location of the GoogleSearch WSDL file my $google_wdsl = "./GoogleSearch.wsdl"; use strict; use SOAP::Lite; use LWP::Simple qw(get); use CGI qw{:standard}; my $googleSearch = SOAP::Lite->service("file:$google_wdsl"); ...

Get Google Hacks now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.