And if it did, how long until a defense is made...
And if it did, how long until a defense is made...
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.
I think once a user is logged into your site, you'd have an extremely hard time defeating this sort of behavior without degrading the quality of user interaction or treading on legitimate use of your site. You may be able to defeat egregious abuses, such as scraping entire photo galleries in seconds, but even that can be defeated by a script that randomizes requests/times between requests.