Slashdot Mirror


Google Hacks

honestpuck writes "It has been quite a while since I have come across a book I'd label 'essential.' The last for non-programming computer users was Robin Williams' The Mac Is Not A Typewriter which I bought for a number of new Macintosh users." Now, though, honestpuck has found another book which he says is required reading for modern computer users -- read on for his review of O'Reilly's Google Hacks. Google Hacks: 100 Industrial-Strength Tips and Tools author Tara Calishain and Rael Dornfest pages 318 publisher O'Reilly rating Excellent reviewer Tony Williams ISBN 0596004478 summary Excellent compendium of tips and tricks for everyone on using Google and its API

The book in brief Google Hacks by Tara Calishain and Rael Dornfest and published by O'Reilly will appeal to an even wider audience, I can imagine buying this for friends who haven't cottoned on to 'net searching at all and friends who complain "Google returns too many sites." People who are afraid to code shouldn't be put off by the "Hacks" in the title: O'Reilly have obviously taken a wider meaning of "hack" than just a neat piece of code. This book is a marvelous compendium of tips and tricks for Google, ranging from simple ways of getting the search results you want, through using Google's newer services such as phone books and image search, all the way to advanced ways of using scrapers and the Google API.

The book demonstrates 100 hacks, of which close to half are useful for everyone -- newbie, programmer and non-programmer alike. The first 35 hacks, in chapters one and two, will educate you about the intricacies of getting the best out of searching both Google's main web catalog and the newer 'Special Services and Collections.' This is the part of the book that should be essential reading for Google users -- in the two days I've had this book these have proved invaluable. The rest are for those who are either looking for extremely advanced search tips, increasing their web site's Google page rank, or programming an application to use the Google data -- all topics well covered in this volume.

What's Good In This Book

To start, it is well written, well laid out with a good contents section, good index, and some appropriate introductory material before getting down to the first hack. Each of the hacks are numbered and a single hack will often cross-reference other hacks that add information relevant to it. The hacks in each chapter nicely add on each other in both complexity and function.

The hacks themselves seem to cover every area of Google that you might want. They range from the downright frivolous (there is a chapter "Google Pranks and Games") to serious ways of improving your search results and excellent examples of good ways to use the Google API.

Most of the code fragments are in Perl, and among the hacks are ways of getting the job done without over extensive use of extra modules such as XML Parsers and SOAP::Lite (including a hack that uses regular expressions to parse the XML).

What's Bad In This Book

It's hard to find anything bad to say, apart from some frustration that a couple of the hacks that interested me used ASP or VB rather than a more portable language.

Oh, another minor quibble, the allied web site O'Reilly Hacks Series has been slow and has none of the code in the book or any of the URLs mentioned listed anywhere -- it seems more geared towards marketing the books than helping the readers.

(DISCLAIMER: I use Rael Dornfest's Blosxom blog software and have contributed a plugin for his software.)

You can purchase Google Hacks from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

45 of 152 comments (clear)

  1. But... by unterderbrucke · · Score: 5, Insightful

    ...misuses of the Google API could lead to them not allowing open access to it anymore, which would deny access to useful tools to proper users.

    1. Re:But... by Hentai · · Score: 3, Interesting

      How is this offtopic? This is exactly what tends to happen with these sorts of 'tricks' - although, admittedly, Google's "don't be evil" policy will probably mitigate this somewhat.

      The point is, whenever you utilize these tricks, remember the 'Tragedy of the Commons' lesson, and think Kantian - "What would happen if EVERYBODY did this? Would the system still support us?"

      If the answer is "no", realize that you're shitting where you eat, and find a more sustainable endeavor.

      --
      -Hentai [in vita non pacem est]
    2. Re:But... by TopShelf · · Score: 4, Interesting

      But then again, disuse of the Google API could lead them to ignore development there. Sounds kinda like Goldilocks here...

      --
      Stop by my site where I write about ERP systems & more
  2. If you're a Google H4X0R... by krugdm · · Score: 5, Funny

    make sure you're using this Google...

    1. Re:If you're a Google H4X0R... by ebh · · Score: 2, Funny

      I like this one better.

    2. Re:If you're a Google H4X0R... by misterhaan · · Score: 4, Funny

      there's also this one
      and this one

      --

      track7.org has all kinds of interesting stuff!

    3. Re:If you're a Google H4X0R... by Theodore+Logan · · Score: 2, Informative

      Is that the way it's gonna be? You have to provide alternative Google logos to get some karma around here? Is that it? Huh? Ok, in that case, there's a whole archive of Google holiday logos over here. And one for fan logos over here.

      Take that!

      --

      "If you think education is expensive, try ignorance" - Derek Bok

  3. Google Hacks... by Shant3030 · · Score: 5, Insightful

    You mean to tell me someone wrote a book that can give better options than "+" and "-"?

    Nice... see you at bn.com!

    --
    100% Insightful
  4. Google Searches... by MoeMoe · · Score: 5, Funny

    As if searching for pr0n wasn't easy enough...

    --
    Business \Busi"ness\, n.;
    A scam in which all people involved perceive as beneficial...
  5. what a good idea by dubbayu_d_40 · · Score: 2, Informative
    I hope they make $$$, what a wonderful idea for a book.

    BTW - google has a new pricewatch service, froogle.google.com. It doesn't sort by price, but you can lower the upper-bound price limit.

  6. Google API. by termos · · Score: 5, Informative

    [...] excellent examples of good ways to use the Google API. [...]
    I had never heard of a Google API, so I did a search on Google (hah), and found this. You can use it in your software as a nice little feature. Would it be nice to have a google search option in the help section of your next software project? I like that idea.

    --
    Note to self: get smarter troll to guard door.
  7. Comment removed by account_deleted · · Score: 4, Funny

    Comment removed based on user account deletion

  8. Like what? by jolshefsky · · Score: 4, Insightful
    Ok, could anyone who's seen the book give an example of something that is not:
    • Using "+" and "-", and the iterative derivatives thereof (search for Heisenberg; add -"Star Trek"; etc.)
    • Using the keyword: features already documented at Google, such as "site:".
    • Thinking about what words might appear in the text of your desired results rather than the topic at hand.
    --
    --- Jason Olshefsky

    Karma: Poser (mostly affected by adding this line long after everyone else did)

    1. Re:Like what? by SimplyCosmic · · Score: 5, Informative


      There are some sample hacks on the O'Reilly webpage for the book, which is also available as part of the O'Reilly Safari Bookshelf for those that subscribe to the service.

    2. Re:Like what? by FTL · · Score: 5, Interesting
      I don't know if it is in the book, but here's a feature not in Google's documentation:

      "how to * a cat"

      Wild cards in Google. Who knew?

      --
      Slashdot monitor for your Mozilla sidebar or Active Desktop.
    3. Re:Like what? by mosch · · Score: 4, Interesting
      I added the book to my safari bookshelf to see what all the fuss is about. In fifteen minutes, I learned that I could do date-bounded searches, about using inurl instead of site, got some cool references to some bookmarklet sites, info on how to scrape google, info on how to program the google API and such.

      I wouldn't call it a must-read, but it's certainly worth adding to your safari bookshelf for a month.

    4. Re:Like what? by the_real_tigga · · Score: 4, Funny

      I always knew that there is more than one way to * a cat!

      --
      my .sig is better than yours.
  9. O'Reilly Books by k-0s · · Score: 2, Interesting

    I'll check this one out. Is there an O'Reilly book that isn't useful or somewhat entertaining? Thier hacking series is top notch in my book.

    1. Re:O'Reilly Books by k-0s · · Score: 2, Funny

      LOL I stand corrected, but in my defense I said useful, I mean you could USE them to balance a short table leg or as a doorstop...;D

  10. Geeks are such suckers. by Tofino · · Score: 3, Funny

    1. Take GOOGLE FOR DUMMIES. 2. Retitle it, adding a geek word (such as, oh, say, "hacks"). 3. Profit! No "?" step here.

  11. Here's a fun little Google trick... by seekohler · · Score: 5, Funny

    Go to Google.com.
    Type in the search terms, "French military victories".
    Click "I'm feeling Lucky".
    Enjoy.

    1. Re:Here's a fun little Google trick... by Blimey85 · · Score: 2, Funny

      That's freakin awesome!!!!! I love stuff like this. Someone should write a book about all the funny stuff you can do with Google.

      --
      How is it that one careless match can start a forest fire, but it takes a whole box to start a campfire?
    2. Re:Here's a fun little Google trick... by Anonymous Coward · · Score: 2, Informative

      This has nothing to do with google. This is just because someone made a funny (fake) pic of google returning that result, and enough people linked to it to make it the top result.

  12. Hey wait a minute... by frodo+from+middle+ea · · Score: 2, Insightful

    Doesn't this book defeat the very purpose of google ?
    I don't know about all you guys, but google preety much comes up with what i want in the first of second search page.
    Most of the time i don't even have to use +, - , "". I think thats the good thing about google. Its ability to come up with the most relevant sites.

    --
    for the last time people, I am "frodo from middle eaRTH", not "middle eaST".
    1. Re:Hey wait a minute... by MrBobaFett · · Score: 2, Interesting

      Unfortunatly sometimes I wish it would work like Ask Jeeves did. Where I could type in a question and it would try and resolve what web site could answer it for me. Of course Ask has gone down hill and I use Google most of the time.

  13. Searching for a specific file? by Boss,+Pointy+Haired · · Score: 5, Informative

    Google for:

    "Index +of" $filename

    The quotation marks are relavent.

  14. Nifty! by xchino · · Score: 3, Interesting

    I think a book like this has been due for awhile now. Google has more features than even they probably know about, but thankfully they don't try to cram them all into blocks all over the page. When you go to www.google.com you get a very accessible, very simple, yet still powerful site. Many people I know use nothing but the default google search, because it gets the job done. I can find out whatever I want about Linux from a basic google search. I can usually find it easier, however, with www.google.com/linux. I only head about it form word of mouth, I had never actually lookd for it. New services and tools are being added all the time, and I mean all the time :) check here to see some of the new and upcoming features. I think most of you would be suprised to find out all the ways google can make your life easier aside from just by being the best damned web search engine.

    --
    Everyone is entitled to their own opinion. It's just that yours is stupid.
  15. Give it to me now by CanadaDave · · Score: 3, Funny

    Can someone scan the book and put it in their Kazaa Shared Folder please? Thanks.

  16. Authors Website with some examples from the book by jesus_watkins · · Score: 5, Informative
    The author of the book has a website with some of the example that appear in the book.

    Some of them are quite fun to muck around with.

  17. trick explained by Joe+the+Lesser · · Score: 5, Informative

    This story explains how that works and who's behind it.

    --
    "I only speak the truth"
    Karma: null(Mostly affected by an unassigned variable)
  18. I'll just Froogle Google Hacks by FatalTourist · · Score: 5, Funny

    Let's see here: Froogle! Ooh! The 5th result lists the book for $12.50. But then when I actually click on the link it's $15.50! Damn you, Froogle!
    I'm sure if I had the book it would tell me how to hack Froogle into getting a lower price for the book. But then I'd already have the book...

    --


    Escape Pod Films: Sketch Comedy and Web Series
  19. Re:AAAAAAARGH MODERATORS!!! by gughunter · · Score: 2, Funny

    That was very informative. Thank you.

  20. The Froo-its of the Dev-eel by horati0 · · Score: 2, Funny

    Check out the download size of the Google API samples file...

    Better read *all* the fine print in the EULA, son.

    --
    The neutrality of this sig is disputed.
  21. Safari by psocccer · · Score: 2, Informative

    This is available on the Safari website for those that have subscriptions, which is nice because it's not a very long book. I was able to read most of it in a day, and I would have felt a little robbed had I bought it, but just checking it out gave me enough time to read what I wanted.

  22. Can't be done i'm afraid by Anonymous Coward · · Score: 3, Informative

    You need a license key to unlock the searches, which is limited to 1000 searches a day. This is fine for yourself, but if you distribute the software to 1000 people, they can only do one search each a day (or one person does 1000 searches and everyone else gets pissed off)

    Oh and BTW, given the storys about the amount of personal data being cached by google every time you search, does anyone now what app/computer specific data the api's are sending back along with the query?

  23. Comment removed by account_deleted · · Score: 4, Insightful

    Comment removed based on user account deletion

  24. Google News by David_Bloom · · Score: 4, Interesting

    If you tweak around with the URL, you can get Google News to display the navigation bar on top (it's better that way, IMHO).

    --

    Karma: Excellent (fuck, even in the future moderation doesn't work!)
  25. has been slow by Openadvocate · · Score: 2, Funny

    Oh, another minor quibble, the allied web site O'Reilly Hacks Series has been slow
    Which is why we are posting it on Slashdot, hoping that a bigger hammer will fix the problem

    --
    my sig
  26. this is not hacking.... THIS is hacking... by Anonymous Coward · · Score: 2, Interesting
  27. Wildcards by linus_vp · · Score: 2, Informative

    are specifically excluded in the Google documentation: To provide the most accurate results, Google does not use "stemming" or support "wildcard" searches. The effect in the above comment with 'how to * a cat' is because the * is ignored. From http://www.google.com/help/basics.html

    --
    My Journal.
  28. Re:API examples by exhilaration · · Score: 2, Insightful
    The examples were most likely in VBScript, which costs nothing to buy

    Free? You'll have to tell us where you're getting "free" Windows licenses - because that's the ONLY platform that supports VBScript. The examples were most likely written in Perl, which is a far better language than VB or VBScript due to its portability and low overhead. Why write a book that's only useful to Windows users when you can significantly increase your market by using a free, portable language?

    Besides, to please the Slashdot crowd, shouldn't all of the examples be Written in C??

    No, to please the Slashdot crowd, they should be written in any language that Microsoft doesn't control, preferably one that's difficult to run on Windows - like shell. :)

  29. Re:What I really want(but am too lazy to look for) by antidigerati · · Score: 3, Informative

    Why assume that it doesn't do that? Just because you don't know how?

    Here is the advanced help page describing the search syntax you desire (plus others).

    And because you have shown yourself to be lazy.. here is the syntax (linked even!) so you can try your above query on Google.

    (baquaspa OR "baqua spa" OR "baquacil") (plastics OR warranty) bromine

    On Google the AND is implied.. and you must capitalize your ORs.

    Enjoy.

  30. like a pointy stick with eyes by trouser · · Score: 2, Insightful

    I recall a time when O'Reilly published excellent books on interesting technical subjects. They weren't neccesarily definitive works but they were well researched, well written, often a good deal lighter and smaller and easier to cart around in your backpack than hardcover bound gazillion page epics and they had those neat little pictures, which I suppose they still have, of bunnies and tigers and camels and such.

    Now there are about 75 billion titles. Underwater Basket Weaving in XML. Genital Hygene with .NET. See Spot Run and write a Perl script. The Love That Dare Not Speak It's Name While Hacking Some Awesome DHTML Tricks With Javascript And Then Going To The Toilet, though not in a rude way, how lucky you English are to find the toilet such a source of amusement, for us it is strictly functional.

    If O'Reilly was a pet it would be like a stinky old dog that isn't cute anymore and it's blind in one eye and has fleas and pees when it's excited.

    --
    Now wash your hands.
  31. Get Over It by NousCS · · Score: 2, Insightful

    "It's hard to find anything bad to say, apart from some frustration that a couple of the hacks that interested me used ASP or VB rather than a more portable language."

    Oh my freaking God! Cry me a river! If you are not a good enough programmer to port code from ASP/VB then you don't know what a "more portable" language is.

  32. Re:Regexp by alexo · · Score: 2, Informative

    No regexp but you did hit on an interesting Google feature:

    The "OR" operator works inside quoted expressions .

    Therefore, the following queries work:
    - "how to confuse OR annoy a cat"
    - "how to confuse | annoy a cat"