PS: I recommend all aspiring coders to telent to www.google.com at least once just to feel the magic.
PS: I recommend all aspiring coders to telent to www.google.com at least once just to feel the magic.
There are frameworks for doing that already, check out Selenium: http://seleniumhq.org/
I'm pretty sure it's illegal in a couple of ways. </bitter>
But yes, the magic is there.
Imagine a web site which terms of service state you cannot use software to circumvent ads. Or where part of the security is done client-side (stupid, yes, but not impossible). Skipping the browser breaches at least the terms of service, and may be constructed as hacking. I think even Google discourages automated searching and prefers you use its api, which (at least some years ago) wasn't free for commercial use. I may be wrong in this particular case, but the important point is you may want to check the specific TOS before skipping the browser.