in reply to YouTube and Mechanize form submission
Usually just setting the agent name is enough to keep sites from blocking robots, but I also usually tell it to sleep with a random value between 2 and 6 seconds, instead of a hardcoded value, so that it looks more like a human.
----mmmmtmmmm