in reply to Html to text

not exactly a perl solution, you can try 'lynx -dump' or 'www-browser -dump' on a unix based machine(provided if lynx and www-browser commands were installed).

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Replies are listed 'Best First'.
Re^2: Html to text
by Anonymous Monk on Mar 22, 2009 at 15:24 UTC
    use strict; use warnings; use HTML::Parse; use HTML::FormatText; use LWP::Simple; my $url = "http://www.perlmonks.org"; my $html = get($url); defined $html or die "Can't fetch HTML from: ",$url; my $ascii = HTML::FormatText->new->format(parse_html($html)); print $ascii;
    This isn't giving me much :( Do I need to pretend that I'm a browser and not a bot. How do I do that? Thank you!