Thread Code für HTML::Parser korrekt? (19 answers)
Opened by Gast at 2010-03-01 19:48

Gast Gast
 2010-03-02 10:52
#133866 #133866
Mit XML::Twig habe ich es jetzt auch mit regex-suche hinbekommen:

Code (perl): (dl )
1
2
3
use XML::Twig;
my $t= XML::Twig->new( twig_handlers => { '//li/a[@title=~ /Bra/]' => sub { say $_->text } } );
$t->parsefile( 'temp_html.html');


Aber das Modul wird vermutlich auch nicht alle HTML-Seiten schlucken.

View full thread Code für HTML::Parser korrekt?