Thread [WWW::Mechanize] Kann Link nicht extrahieren (8 answers)
Opened by Ionit at 2014-09-20 11:34

GwenDragon
 2014-09-20 12:53
#177404 #177404
User since
2005-01-17
14747 Artikel
Admin1
[Homepage]
user image
CPAN:WWW::Mechanize::Query verwenden.
da
Code (perl): (dl )
print $mech->at( 'div.testklasse a' )->text;


oder CPAN:Mojo::DOM.
Code (perl): (dl )
1
2
3
use Mojo::DOM;
my $mojo = Mojo::DOM->new( $mech->content);
print $mojo->at( 'div.testklasse a' )->text;

Last edited: 2014-09-20 12:57:35 +0200 (CEST)

View full thread [WWW::Mechanize] Kann Link nicht extrahieren