Python equivalent of "lynx -dump"?

Fredrik Lundh effbot at telia.com
Mon Mar 27 16:32:54 EST 2000


lewst <lewst at yahoo.com> wrote:
> How can I capture only the formatted output of an HTML page within
> Python?

I assume what you're trying to say is "how
do I convert HTML to plain text" ?

if so, the answer is to use the HTML parser
with a DumbWriter:

    http://www.deja.com/=dnc/getdoc.xp?AN=573922944

</F>





More information about the Python-list mailing list