in reply to Re^2: Tricking website into thinking your a browser
in thread Tricking website into thinking your a browser
Please check the content of $html. It should contain the complete html content fetched by LWP::Simple.
Please check, what HTML::Parse and HTML::FormatText do to the content...
So, what's the result after parse_html($html)?
As I haven't used those *::Parser modules too often, I wonder whether you should stick to the warnings, mentioned in the documentation of HTML::Parse itself:
Disclaimer: This module is provided only for backwards compatibility with earlier versions of this library. New code should not use this module, and should really use the HTML::Parser and HTML::TreeBuilder modules directly, instead.
Maybe you should use other modules for extracting the plain text information (as I assume that is what you want to do...)
Check out the examples of HTML::Parser. They provide a script named htext, which does the following job: "# Extract all plain text from an HTML file"
Find it for example at http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.60/eg/
(Please note the module versions; they may differ between your system and cpan.)
Update: fixed minor typo
|
|---|