The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history.
-
ruby 1.8.7, 1.9.2, or 1.9.3
The mechanize mailing list is available here:
* http://rubyforge.org/mailman/listinfo/mechanize-users
The bug tracker is available here:
* https://github.com/sparklemotion/mechanize/issues
If you are just starting, check out the GUIDE. Also, check out the EXAMPLES file.
To run the tests for the first time:
gem install hoe rake rake newb
This will install all the required dependencies for running the tests. For subsequent test runs:
rake test
You can also use autotest
from the ZenTest gem to run tests.
See also Mechanize::TestCase to read about the built-in testing infrastructure.
Copyright © 2005 by Michael Neumann ([email protected])
Copyright © 2006-2011:
Copyright © 2011-2012:
This library comes with a shameless plug for employing me (Aaron) programming Ruby, my favorite language!
This library was heavily influenced by its namesake in the perl world. A big thanks goes to Andy Lester ([email protected]), the author of the original perl Mechanize which is available here. Ruby Mechanize would not be around without you!
Thank you to Michael Neumann for starting the Ruby version. Thanks to everyone who’s helped out in various ways. Finally, thank you to the people using this library!
This library is distributed under the MIT license. Please see the LICENSE file.