Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: HTML stripper in WWW::Mechanize doesn't seem to work

by Nkuvu (Priest)
on Jul 31, 2005 at 21:14 UTC ( [id://479742]=note: print w/replies, xml ) Need Help??


in reply to Re: HTML stripper in WWW::Mechanize doesn't seem to work
in thread HTML stripper in WWW::Mechanize doesn't seem to work

I installed WWW::Mechanize (I may even end up using it someday), and looked through the docs:
$mech->content(...) Returns the content that the mech uses internally for the last page fetched. Ordinarily this is the same as $mech->response()->content(), but this may differ for HTML documents if "update_html" is overloaded (in which case the value passed to the base-class implementation of same will be returned), and/or extra named arguments are passed to con +- tent(): $mech->content( format => "text" ) Returns a text-only version of the page, with all HTML markup stripped. This feature requires HTML::TreeBuilder to be installed, o +r a fatal error will be thrown.
So it looks like the call is correct.

Log In?
Username:
Password:

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

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

    No recent polls found