in reply to Any pure-perl html to text? (Or: missing a perl equivalent to 'lynx -dump')

WWW::Mechanize has a method for that (it requires that HTML::TreeBuilder is installed as well) ..
my $mech = WWW::Mechanize->new(); $mech->get('http://example.com'); print $mech->content(format => 'text');
If you're not already using WWW::Mechanize for your scraping, i highly recommend it (note it uses LWP underneath)..
Update: added 'print' so that snippet has output
  • Comment on Re: Any pure-perl html to text? (Or: missing a perl equivalent to 'lynx -dump')
  • Download Code

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.