Mechanize

Mechanize 是一个 Ruby 库,可轻松实现自动 web 交互。「Mechanize is a ruby library that makes automated web interaction easy.」

  • Owner: sparklemotion/mechanize
  • Platform: Linux,Mac,Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Mechanize

Test suite

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.6
  • 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.

Main metrics

Overview
Name With Ownersparklemotion/mechanize
Primary LanguageRuby
Program languageRuby (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2008-04-18 16:55:10
Pushed At2025-01-05 18:30:35
Last Commit At
Release Count54
Last Release Namev2.14.0 (Posted on )
First Release NameREL_0.7.6 (Posted on 2008-05-11 19:33:28)
用户参与
Stargazers Count4.4k
Watchers Count84
Fork Count471
Commits Count1.6k
Has Issues Enabled
Issues Count428
Issue Open Count5
Pull Requests Count155
Pull Requests Open Count0
Pull Requests Close Count67
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private