Description
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.
Mechanize alternatives and similar gems
Based on the "Web Crawling" category.
Alternatively, view Mechanize alternatives based on common mentions on social networks and blogs.
-
FastImage
FastImage finds the size or type of an image given its uri by fetching as little as needed -
Wombat
Lightweight Ruby web crawler/scraper with an elegant DSL which extracts structured data from pages. -
MetaInspector
Ruby gem for web scraping purposes. It scrapes a given URL, and returns you its title, meta description, meta keywords, links, images... -
Spidr
A versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use. -
LinkThumbnailer
Ruby gem that fetches images and metadata from a given URL. Much like popular social website with link preview. -
instabot.rb
An instagram bot works without instagram api, only needs your username and password. written in ruby -
The Hawker Ruby gem
The Hawker gem is a web scraper which allows you to pull the basic information for given social media profile URL -
Kimurai
DISCONTINUED. Kimurai is a modern web scraping framework written in Ruby which works out of box with Headless Chromium/Firefox, PhantomJS, or simple HTTP requests and allows to scrape and interact with Javascript rendered websites
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Mechanize or a related project?
README
Mechanize
Description
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.
Dependencies
- Ruby >= 2.5
- Gems:
addressable
domain_name
http-cookie
mime-types
net-http-digest_auth
net-http-persistent
nokogiri
rubyntlm
webrick
webrobots
Support:
The bug tracker is available here:
Examples
If you are just starting, check out GUIDE.rdoc or EXAMPLES.rdoc.
Developers
Use bundler to install dependencies:
bundle install
Run all tests with:
bundle exec rake test
See also Mechanize::TestCase to read about the built-in testing infrastructure.
Authors
- Eric Hodel
- Akinori MUSHA
- Aaron Patterson
- Lee Jarvis
- Mike Dalessio
Acknowledgments
This library was heavily influenced by its namesake in the Perl world. A big thanks goes to Andy Lester, the author of the original Perl module WWW::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!
License
This library is distributed under the MIT license. Please see LICENSE.txt.
*Note that all licence references and agreements mentioned in the Mechanize README section above
are relevant to that project's source code only.