Home Page Icon
Home Page
Table of Contents for
5. Introducing the Google Web API
Close
5. Introducing the Google Web API
by Rael Dornfest, Tara Calishain
Google Hacks
Google Hacks
Credits
About the Authors
Contributors
Acknowledgments
Tara
Rael
Foreword
Preface
Why Google Hacks?
How This Book Is Organized
How to Use This Book
Conventions Used in This Book
How to Contact Us
1. Searching Google
Hacks #1-28
What Google Isn’t
What Google Is
Google Basics
Basic Boolean
Simple Searching and Feeling Lucky
Just in Case
Other Considerations
The Special Syntaxes
Advanced Search
Query Word Input
Language
Filtering
File Format
Date
Setting Preferences
Language
Filtering
Number of Results
Settings for Researchers
Language Tools
Getting to the Language Tools
Making the Most of Google’s Language Tools
Anatomy of a Search Result
Why Bother?
Specialized Vocabularies: Slang and Terminology
Slang
Using Google with Slang
Specialized Vocabularies—Industrial Slang
Using Specialized Vocabulary with Google
Getting Around the 10 Word Limit
Favor Obscurity
Playing the Wildcard
Word Order Matters
What’s Going On?
Strategies
Repetition Matters
How Does This Work?
A Theory
So What?
See Also
Mixing Syntaxes
The Antisocial Syntaxes
How Not to Mix Syntaxes
How to Mix Syntaxes
Titles and sites
Title and URL
All the possibilities
Hacking Google URLs
Anatomy of a URL
Hacking Google Search Forms
Hidden Variables
Mixing Hidden File Types: An Example
Creating Your Own Google Form
Date-Range Searching
The daterange: Syntax
Searching by Content Creation Date
Understanding and Using Julian Dates
Using Full-Word Wildcards
inurl: Versus site:
How Many Subdomains?
Checking Spelling
Embrace Misspellings
Consulting the Dictionary
Consulting the Phonebook
The Three Syntaxes
Using the Syntaxes
Caveats
Reverse phonebook lookup
Finding phonebooks using Google
Tracking Stocks
Beyond Google for Basic Stock Information
More Stock Research with Google
Google Interface for Translators
Searching Article Archives
Articles from the NYT
Magazine Articles
Finding Directories of Information
Title Tags and Wildcards
Finding Searchable Subject Indexes with Google
Finding Technical Definitions
Technology Terminology
Google Glossary
Researching Terminology with Google
Where to Go When It’s Not on Google
See Also
Finding Weblog Commentary
Finding weblogs
Using These “Magic Words”
The Google Toolbar
The Mozilla Google Toolbar
The Quick Search Toolbar
Basic Browser Use
Triggers and Switches
The triggers
The switches
Navigating Your Searches
And the Rest
See Also
GAPIS
Options
Searching
Googling with Bookmarklets
2. Google Special Services and Collections
Hacks #29-35
Google’s Current Offerings
Google Answers
Topic-Specific Search
Google of the Future—Google Shopping?
Google in the 2010s
Google Directory
Searching the Google Directory
The Google Directory and the Google API
Google Groups
Ten Seconds of Hierarchy Funk
Browsing Groups
Google Groups and Special Syntaxes
Mixing syntaxes in Google Groups
Some common search scenarios
Tech support
Finding commentary immediately after an event
Google Groups and the Google API
Google Images
Google Images Advanced Search Interface
Google Images Special Syntaxes
Google Images and the Google API
Google News
Special Syntaxes
Making the Most of Google News
Beyond Google for News Search
Google News and the Google API
Google Catalogs
Special Syntaxes
Google Catalogs and the Google API
Froogle
Browsing for Purchases
Searching for Purchases
Adding a Merchant to Froogle
Froogle and the Google API
Google Labs
Google Labs and the Google API
3. Third-Party Google Services
Hacks #36-40
Of Google, but Not Google
Tinkering with the UI
Expanding the Options with the Google API
Thinking Way Outside the Box
XooMLe: The Google API in Plain Old XML
How It Works
Google Method: doGoogleSearch
Extra Features
Google Method: doSpellingSuggestion
Google Method: doGetCachedPage
Asking XooMLe Something (Forming Requests)
Error Messages
Putting XooMLe to Work: A SOAP::Lite Substitution Module
Using the XooMLe Module
Running the Hack
Applicability
See Also
Google by Email
CapeMail Tricks
Simplifying Google Groups URLs
Other URL-Shortening Options
What Does Google Think Of...
The Interface
What You Get Back
Practical Uses
Expanding the Application
GooglePeople
Using GooglePeople
Tips for Using GooglePeople
Books and authors
Numbers
Mind your questions
Using GooglePeople
4. Non-API Google Applications
Hacks #41-49
Scraping Versus the API
Why Scrape Google Data?
Things to Keep in Mind While Scraping
Using Scraped Data Files
Not Fancy but Handy
Don’t Try This at Home
Don’t Try These at Home
Other Programs to Be Concerned About
Building a Custom Date-Range Search Form
The Form
The Code
Hacking the Hack
Building Google Directory URLs
The Code
Running the Hack
The Results
Hacking the Hack
Scraping Google Results
The Code
Running the Script
The Results
Scraping Google AdWords
The Code
How It Works
The Results
Hacking the Hack
See Also
Scraping Google Groups
Saving Pages
Scraping Caveats
The Code
Running the Hack
The Results
Scraping Google News
The Code
Running the Script
The Results
Hacking the Hack
Scraping Google Catalogs
The Code
Running the Script
The Results
Hacking the Hack
Scraping the Google Phonebook
The Code
Running the Hack
5. Introducing the Google Web API
Hacks #50-59
Why an API?
Signing Up and Google’s Terms
The Google Web APIs Developer’s Kit
Using the Key in a Hack
What’s WSDL?
Understanding the Google API Query
Query Essentials
A Sample
Intersecting Country, and Topic Restrictions
Putting Query Elements to Use
Understanding the Google API Response
Can Do
Can’t Do
The 10-Result Limit
What’s in the Results
Aggregate data
Individual search result data
Programming the Google Web API with Perl
The Code
Running the Hack
The Results
See Also
Looping Around the 10-Result Limit
The Code
Running the Script
The Results
See Also
The SOAP::Lite Perl Module
SOAPing your ISP
Installing SOAP::Lite
Unix and Mac OS X installation via CPAN
Unix installation by hand
Windows installation via PPM
SOAP::Lite Alternatives
Plain Old XML, a SOAP::Lite Alternative
The Code
Running the Hack
The Results
Applicability and Limitations
See Also
NoXML, Another SOAP::Lite Alternative
The Code
Running the Hack
The Results
Applicability and Limitations
See Also
Programming the Google Web API with PHP
The Code
Running the Hack
The Results
Programming the Google Web API with Java
The Code
Compiling the Code
Running the Hack
The Results
Programming the Google Web API with Python
PyGoogle Installation
The Code
Running the Hack
The Results
Hacking the Hack
Programming the Google Web API with C# and .NET
The Code
Compiling the Code
Running the Hack
The Results
Programming the Google Web API with VB.NET
The Code
Compiling the Code
Running the Hack
The Results
6. Google Web API Applications
Hacks #60-85
The Ingenuity of Millions
Learning to Code
What You’ll Find Here
Finding More Google API Applications
The Possibilities Aren’t Endless, but They’re Expanding
Date-Range Searching with a Client-Side Application
The Queries
The Code
Running the Hack
The Results
Hacking the Hack
Adding a Little Google to Your Word
Using CapeSpeller
Permuting a Query
The Code
Running the Hack
Using the Hack
Tracking Result Counts over Time
The Code
Running the Hack
The Results
Working with These Results
Hacking the Hack
Visualizing Google Results
Starting to Browse
Expanding Your View
Visualization Options
Making the Most of These Visualizations
Meandering Your Google Neighborhood
The Code
Running the Hack
Hacking the Hack
Noticing/ignoring file extensions
Ignoring domains
Running a Google Popularity Contest
The Code
Running the Hack
Building a Google Box
What’s a Google Box?
Google Box
Google Boxes Everywhere
Radio Userland
Movable Type
Other implementations
What’s in Your Google Box?
The Code
Running the Hack
The Results
Integrating a Google Box
Capturing a Moment in Time
Making the Google Box Timely
The Code
Running the Hack
The Results
Hacking the Hack
Running the Hacked Hack
Feeling Really Lucky
The Code
Hacking the Hack
Gleaning Phonebook Stats
The Code
Running the Hack
Results
Hacking the Hack
Residential, business, or both
The cities
The 600-Foot Ceiling
Performing Proximity Searches
Making the Most of GAPS
The Code
Other Staggernation Scripts
Blending the Google and Amazon Web Services
How It Works
The Modules
AmazonAPI
GoogleAPI
The Template
The CGI Script
Running the Hack
Getting Random Results (On Purpose)
The Code
The Code
Running the Hack
Hacking the Hack
Modifying the modifiers
Adding a touch more randomness
Restricting Searches to Top-Level Results
The Code
Running the Hack
Hacking the Hack
More depth
Query tips
Searching for Special Characters
The Code
Hacking the Hack
Choosing special characters
Excluding special characters
Digging Deeper into Sites
The Code
Running the Hack
Hacking the Hack
See Also
Summarizing Results by Domain
The Code
Running the Hack
The Results
Hacking the Hack
Going back for more
Comma-separated
Scraping Yahoo! Buzz for a Google Search
The Code
Running the Hack
The Results
Hacking the Hack
Measuring Google Mindshare
The Code
Running the Hack
Fun Hack Uses
Comparing Google Results with Those of Other Search Engines
The Code
Running the Hack
Why?
SafeSearch Certifying URLs
Danger Will Robinson
The Code
Running the Hack
Hacking the Hack
Syndicating Google Search Results
Running the Hack
Searching Google Topics
Why Topic Search?
The Code
Running the Hack
Search Ideas
Finding the Largest Page
The Code
Running the Hack
Usage Examples
Hacking the Hack
Instant Messaging Google
The Code
7. Google Pranks and Games
Hacks #86-92
The No-Result Search (Prank)
Hacking the URL
Hacking the Search
Delivering the Prank
Google Whacking
Running the Hack
The Results
GooPoetry
The Code
Running the Hack
Hacking the Hack
Creating Google Art
Making Your Own Art
Google Bounce
The Code
See Also
Google Mirror
Finding Recipes
Using the Hack
Hacking the Hack
Finding New Recipe Domains
8. The Webmaster Side of Google
Hacks #93-100
Google’s Preeminence
Google’s Importance to Webmasters
The Mysterious PageRank
The Equally Mysterious Algorithm
Google’s Ad Programs
Keeping Up with Google’s Changes
In a Word: Relax
A Webmaster’s Introduction to Google
Search Engine Basics
Submitting Your Site to Google
The Search Engine Optimization Template
Generating Google AdWords
Choosing AdWords
Exploring Your Competitors’ AdWords
See Also
Inside the PageRank Algorithm
What Is PageRank?
So What Is the Algorithm?
And What Does This Mean?
So What’s the Use of the PageRank Calculator?
How Does the PageRank Calculator Work?
26 Steps to 15K a Day
A. Prep Work
B. Choose a Brandable Domain Name
C. Site Design
D. Page Size
E. Content
F. Keyword Density and Keyword Positioning
G. Outbound Links
H. Cross-Links
I. Put It Online
J. Submit
K. Logging and Tracking
L. Spiderings
M. Topic Directories
N. Links
O. Content
P. Gimmicks
Q. Linkbacks
R. Rounding Out Your Offerings
S. Beware of Flyer and Brochure Syndrome
T. Keep Building One Page of Content Per Day
U. Study Those Logs
V. Timely Topics
W. Friends and Family
X. Notes, Notes, Notes
Y. Submission Check at Six Months
Z. Keep Building Those Pages of Quality Content!
Being a Good Search Engine Citizen
Thou shalt not:
Thou shalt:
What Happens if You Reform?
What Happens if You Spot Google Abusers in the Index?
Cleaning Up for a Google Visit
Getting the Most out of AdWords
Matching Can Make a Dramatic Difference
Copywriting Tweaks Generally Involve Improving Clarity and Directness
Be Inquisitive and Proactive with Editorial Policies (But Don’t Whine)
Avoid the Trap of “Insider Thinking” and Pursue the Advantage of Granular Thinking
See Also
Removing Your Materials from Google
Google’s Web Search
Making sure your pages never get there to begin with
Removing your pages after they’re indexed
Removing that content now
Reporting pages with inappropriate content
Google Images
Removing Material from Google Groups
Preventing your material from being archived
Removing materials after the fact
Removing Your Listing from Google Phonebook
Index
Colophon
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Scraping the Google Phonebook
Next
Next Chapter
Why an API?
Chapter 5. Introducing the Google Web API
Hacks #50-59
A first look at the Google API and how to sign up.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset