Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Display html in plaintext

by arturo (Vicar)
on Oct 09, 2002 at 13:41 UTC ( [id://203918]=note: print w/replies, xml ) Need Help??


in reply to Display html in plaintext

Note that there are command-line tools that you may have available that will do pretty much what you want; no need to whip up a perl script when lynx will do:

lynx --dump <url>

This preserves some of the formatting, and labels the links as well. Lynx' table-savvy descendant, links, also takes --dump as an option, but the output is not as nice.

If not P, what? Q maybe?
"Sidney Morgenbesser"

Replies are listed 'Best First'.
Re: Re: Display html in plaintext
by trs80 (Priest) on Oct 09, 2002 at 14:38 UTC
    w3m is my favorite tool to convert to text and has good support for tables as well, in fact that is why I started using. I needed to send out emails with an HTML and text version of the same inforamtion that was in a table and w3m is working nicely.
    See this node for more information.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-18 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found