Skip to Content
Google Hacks, 3rd Edition
book

Google Hacks, 3rd Edition

by Rael Dornfest, Paul Bausch, Tara Calishain
August 2006
Beginner to intermediate
546 pages
14h 42m
English
O'Reilly Media, Inc.
Content preview from Google Hacks, 3rd Edition

Chapter 8. Programming Google

When search engines first appeared on the scene, they were more open to being spidered, scraped, and aggregated. Sites such as Excite and AltaVista didn’t worry too much about the odd surfer using Perl to grab a slice of a page or meta-search engines including their results in aggregated search results. Sure, egregious data suckers might get shut out, but the search engines weren’t worried about sharing their information on a smaller scale.

Google never took that stance. Instead, it has regularly prohibited meta-search engines from using its content without a license, and it tries its best to block unidentified web agents such as Perl’s LWP::Simple module or even wget on the command line. Google has even been known to block IP address ranges for running automated queries.

Google had every right to do this; after all, it was its search technology, database, and computer power. Unfortunately, however, these policies meant that casual researchers and Google nuts, like you and I, couldn’t play with its rich dataset in any automated way.

Google changed all that with the release of the Google Web API (http://api.google.com) in the spring of 2002. The Google Web API doesn’t allow you to do every kind of search possible—for example, it doesn’t support the phonebook: syntax—but it does make available Google’s eight-billion-page web database so that developers can create their own interfaces and use Google search results to their liking.

Tip

API stands for “Application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Google Hacks, 2nd Edition

Google Hacks, 2nd Edition

Tara Calishain, Rael Dornfest
Google Hacks

Google Hacks

Tara Calishain, Rael Dornfest
Google Hacking for Penetration Testers, 3rd Edition

Google Hacking for Penetration Testers, 3rd Edition

Bill Gardner, Johnny Long, Justin Brown

Publisher Resources

ISBN: 0596527063Errata Page