./www/p5-WWW-Mechanize-TreeBuilder [combines WWW::Mechanize and HTML::TreeBuilder]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.20000, Package name: p5-WWW-Mechanize-TreeBuilder-1.20000
Maintained by: The OpenBSD ports mailing-list
Master sites:
Description
This module combines WWW::Mechanize and HTML::TreeBuilder. Why? Because
I've seen too much code like the following:

like($mech->content, qr{

some text

}, "Found the right tag");

Which is just all flavours of wrong - its akin to processing XML with
regexps. Instead, do it like the following:

ok($mech->look_down(_tag => 'p', sub { $_[0]->as_trimmed_text eq 'some
text' })

The anon-sub there is a bit icky, but this means that anyone should
happen to add attributes to the

tag (such as an id or a class) it
will still work and find the right tag.


Filesize: 22.276 KB
Version History (View Complete History)
  • (2015-09-04) Updated to version: p5-WWW-Mechanize-TreeBuilder-1.20000
  • (2010-09-27) Updated to version: p5-WWW-Mechanize-TreeBuilder-1.10003
  • (2009-11-03) Updated to version: p5-WWW-Mechanize-TreeBuilder-1.10001p0
  • (2009-11-02) Package added to openports.se, version p5-WWW-Mechanize-TreeBuilder-1.10001 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2016-03-20 13:57:24 by Christian Weisgerber | Files touched by this commit (1617)
Log message:
Remove SHARED_ONLY from all CPAN Perl ports and the cpan and perl MODULES.
Add WANTLIB+=perl and PKG_ARCH=* as appropriate.
   2015-09-04 01:23:18 by Benoit Lecocq | Files touched by this commit (2)
Log message:
Update to p5-WWW-Mechanize-TreeBuilder-1.20000.
   2015-09-04 01:23:18 by Benoit Lecocq | Files touched by this commit (2)
Log message:
Update to p5-WWW-Mechanize-TreeBuilder-1.20000.
   2015-01-21 07:43:34 by Stuart Henderson | Files touched by this commit (43)
Log message:
drop USE_GROFF, output checked with gmdiff
   2015-01-17 20:16:09 by Christian Weisgerber | Files touched by this commit (3349)
Log message:
Drop remaining MD5/RMD160/SHA1 checksums.
   2011-08-01 13:36:02 by Stephan A. Rickauer | Files touched by this commit (4)
Log message:
remove me as maintainer and bump, ok espie@
   2010-12-03 04:46:54 by Antoine Jacoutot | Files touched by this commit (371)
Log message:
Bump after recent cpan.port.mk change.
ok jasper@
(final commit)
   2010-11-22 01:37:07 by Marc Espie | Files touched by this commit (859)
Log message:
new depends
   2010-10-19 02:02:58 by Marc Espie | Files touched by this commit (243)
Log message:
USE_GROFF=Yes
   2010-09-27 07:31:16 by Stephan A. Rickauer | Files touched by this commit (2)
Log message:
update to 1.10003
   2010-09-27 07:31:16 by Stephan A. Rickauer | Files touched by this commit (2)
Log message:
update to 1.10003
   2010-07-13 14:14:24 by Stuart Henderson | Files touched by this commit (152)
Log message:
use REVISION
   2009-11-03 06:27:43 by Stephan A. Rickauer | Files touched by this commit (17)
Log message:
change maintainer email address.
fixing some whitespaces into tabs while at it.
ok sthen@ and jasper@