O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  



Search in Google Print, every time
Google Print links are elusive. Sometimes they pop up during a Google search, showing you related books. Sometimes they don't. Here's a simple way to get them to always appear. But why use Google Print, anyhow, when you can use search Safari (http://safari.oreilly.com)? Did you know it has an API?

Contributed by:
Sid Steward
[02/10/05 | Discuss (2) | Link to this hack]

Tickle Google Print

When performing a Google search, you can tickle it into always supplying Google Print links by preceding your search with the word "books". E.g.: books java:

http://www.google.com/search?q=books+java

Safari Bookshelf Search

IMO, a better source for book search is the Safari Bookshelf search, http://safari.oreilly.com/. You can easily add a Safari search box to your web site by including something such as:

Put PDF Hacks to the test:

<form action="http://safari.oreilly.com/JVXSL.asp" method="post" style="margin: 0">
<table border="0" cellspacing="4" cellpadding="0" bgcolor="#00a4a3" width="100%">
<tr><td align="center"><span style="color: white; font-weight: bold">PDF Hacks<br>
Full-Text Search</font></span></td></tr>
<tr><td align="center"><span>
<input type="hidden" name="s" value="1" />
<input type="hidden" name="b" value="1" />
<input type="hidden" name="t" value="1" />
<input type="hidden" name="f" value="1" />
<input type="hidden" name="c" value="1" />
<input type="hidden" name="l" value="1" />
<input type="hidden" name="se_isbn" value="0-596-00655-1" />
<input type="hidden" name="view" value="section" />
<input tabindex="1" name="se_text" type="text" value="" size="14" style="background-color: #ccffff" />
<input type="submit" value="Search" style="font-size: 9px" /></span>
</td></tr>
</table>
</form>

Or, search all Safari titles. These include many O'Reilly books.

<form action="http://safari.oreilly.com/JVXSL.asp" method="post" style="margin: 0">
<table border="0" cellspacing="4" cellpadding="0" bgcolor="white" width="100%">
<tr><td align="center">
<span style="color: black; font-weight: bold">Full-Text Book Search</font></span>
</td></tr>
<tr><td align="center"><span>
<input type="hidden" name="s" value="1" />
<input type="hidden" name="b" value="1" />
<input type="hidden" name="t" value="1" />
<input type="hidden" name="f" value="1" />
<input type="hidden" name="c" value="1" />
<input type="hidden" name="l" value="1" />
<input type="hidden" name="view" value="book" />
<input tabindex="1" name="se_text" type="text" value="" size="14" />
<input input type="submit" value="Search" style="font-size: 9px" /></span>
</td></tr>
</table>
</form>

See this code in action at http://www.pdfhacks.com.

Safari bookshelf has an API, an affiliates program, and other goodies, too:

http://safari.oreilly.com/?mode=file&file=tools

Who knew? I didn't, until yesterday.


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.