Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^6: How to get HTML::Parser to return a line of parsed text

by Anonymous Monk
on Jan 04, 2008 at 16:39 UTC ( [id://660430]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: How to get HTML::Parser to return a line of parsed text
in thread How to get HTML::Parser to return a line of parsed text

Slick is as slick does.
use HTML::Parser; use LWP::Simple qw(get); my $html = get("http://anime.com"); my @accum = (); my $parser = HTML::Parser->new( text_h => [\@accum, "text"] ); $parser->parse( $html ); for (@accum) { print $_->[0]; }
:P

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://660430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found