Mechanize is a ruby library that makes automated web interaction easy.