In this article we're going to focus on using just the module WWW::Mechanize and the modules in its orbit. There are other modules out there for performing tasks like the ones we're going to explore, but I've not found one to date that I've liked better than WWW::Mechanize. I should note that I'm not the only person enamored of this module. Mech, as it is affectionately called, has been reimplemented in several other of your favorite languages: py-mechanize (in Python) and WWW::Mechanize (in Ruby). The boundary between Perl and Ruby is actually porous in both directions. We're not going to look at it in this column, but WWW::Mechanize::Plugin::Web::Scraper lets you use the module Web::Scraper from WWW::Mechanize. Web::Scraper takes its design from the excellent Ruby-based scrAPI toolkit.
转载于:https://blog.51cto.com/orzee/595739
使用WWW::Mechanize
本文专注于使用Perl模块WWW::Mechanize进行网页自动化操作。该模块被广泛用于模拟浏览器行为,执行登录、表单填写等任务。文章还提到了其在Python和Ruby语言中的实现,并介绍了与Web::Scraper结合使用的可能性。
3177

被折叠的 条评论
为什么被折叠?



