Funny, I was thinking the same thing.
Actually I have a question, out of pure curiosity. How many people packet sniff when writing a scraper/bot/whatever?
I use wireshark for trouble shooting, IF LiveHeaders is not enough, but
most of the stuff in wireshark is just plain over my head. Usually, using
LiveHeaders *before* I write any code does the trick.
What is the best language to write a bot in? I'm talking about efficiency in writing the code and producing a final program. The only experience I have is with C#, but will gladly move to a language that will let me make bots more easily. And these are bots that will fill out those online giveaways etc.
I am not a multi-language coder like some of the guys here. I use perl
almost exclusively. Not because it's "the best", but because it's what
I got started with years ago near the end of the dot com bust.
Using just perl is no more efficient than any other language, however,
there are modules on cpan.org that can do some pretty nice things.
One of those is IEAutomation.pm. The beauty of automating IE, (or any
full featured browser), is that there is no need to deal with javascript,
and no need to deal with hidden input tags. IE handles all of that, and I
just need to plug in the same info that a human would type in.
If I had this code on my pc and double clicked it, MSIE would open up
and load http://www.cpan.org/
Code:
# INITIALIZE:
use Win32::IEAutomation;
$ie = Win32::IEAutomation->new( visible => 1, maximize => 1);
# GET A PAGE:
$ie->gotoURL('http://www.cpan.org/');
Once the page is loaded, IEautomation has a nice set of commands to
fill in text boxes and clicking. Very simple, short learning curve.
http://search.cpan.org/search?mode=all&query=IEautomation
Bompa