Thread Code für HTML::Parser korrekt?
(19 answers)
Opened by Gast at 2010-03-01 19:48
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. |