Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This code doesn't give me the text that I see with my browser. How do I do this? Thanks!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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tricking website into thinking your a browser
by linuxer (Curate) on Mar 22, 2009 at 16:20 UTC | |
|
Re: Tricking website into thinking your a browser
by Anonymous Monk on Mar 22, 2009 at 16:26 UTC | |
by Anonymous Monk on Mar 22, 2009 at 17:02 UTC | |
by linuxer (Curate) on Mar 22, 2009 at 17:28 UTC | |
by Anonymous Monk on Mar 22, 2009 at 17:18 UTC |