|
Free Open Book
Google Hacks |
Hack 9 Hacking Google URLs
Hacking the URL Google hands you in response to a search. When you think of hacks you might think of making a cool search form or performing a particularly intricate search. But you can also hack search results by hacking the URL that Google returns after a search. There's at least one thing you can do by hacking the URL that you can do no other way, and there are quick tricks you can do that might save you a trip back to the advanced preferences page otherwise. 9.1 Anatomy of a URLSay you want to search for three blind mice. Your result URL will vary depending on the preferences you've set, but the results URL will look something like this: http://www.google.com/search?num=100&hl=en&q=%22three+blind+mice%22 The query itself—&q=%22three+blind+mice%22, %22 being a URL-encoded " (double quote)—is pretty obvious, but let's break down what those extra bits mean. num=100 refers to the number of search results to a page, 100 in this case. Google accepts any number from 1 to 100. Altering the value of num is a nice shortcut to altering the preferred size of your result set without having to meander over to the Advanced Search page and rerun your search. Don't see the num= in your query? Simply append it to your query URL using any value between 1 and 100.
hl=en means the language interface—the language in which you use Google, reflected in the home page, messages, and buttons—is in English (at least mine is). Google's Language Tools page [Hack #2] provides a list of language choices. Run your mouse over each and notice the change reflected in the URL; the one for Pig Latin looks like this: http://www.google.com/intl/xx-piglatin/ The language code is the bit between intl/ and the last /, xx-piglatin in this case. Apply that to the search URL at hand: hl=xx-piglatin What if you put multiple &hl modifiers on a result URL? Google uses whichever one comes last. While it makes for confusing URLs, this means you can always resort to laziness and add an extra modifier at the end rather than editing what's already there. There are a couple more modifiers that, appended to your URL, may provide some useful modifications of your results:
Hacking Google's URL may not seem like the most intuitive way to get results quickly, but it's much faster than reloading the advanced search form and in one case (the "months old" modifier) it's the only way to get at a particular set of results.
|
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |