[Tutor] HTML --> TXT?

Justin Sheehy dworkin@ccs.neu.edu
29 Mar 2000 16:40:22 -0500

"Curtis Larsen" <curtis.larsen@Covance.Com> writes:

> Justin - Thanks, but I tried looking at those, but they were about
> as clear as mud to me.  If they really are for translations such as
> this, would someone please post a more straight-forward example?

import htmllib, formatter
p = htmllib.HTMLParser(formatter.AbstractFormatter(formatter.DumbWriter()))
f = open('yourfile.html')

That will send the contents of the HTML file, without the markup, to stdout.

A very similar question was asked and answered (not by me) on
python-list recently.



Return-Path: <raonagar@pcsbom.patni.com>
Delivered-To: tutor@python.org
Received: from dci.patni.com (dci.patni.com [])
	by dinsdale.python.org (Postfix) with ESMTP id 518F41CD15
	for <tutor@python.org>; Wed, 29 Mar 2000 04:37:15 -0500 (EST)
Received: from pcsbom.patni.com (pcsspz.patni.com []) by dci.patni.com (8.8.5/SCO5) with ESMTP id EAA14696 for <tutor@python.org>; Wed, 29 Mar 2000 04:36:35 -0500 (EST)
Received: from sbm5501.patni.com (sbm5501.patni.com [])
	by pcsbom.patni.com (8.8.8/8.8.8) with SMTP id PAA13847
	for <tutor@python.org>; Wed, 29 Mar 2000 15:09:27 +0530 (IST)
Date: Wed, 29 Mar 2000 15:06:24 +0530 (IST)
From: "CH.Nagaraja Rao" <raonagar@pcsbom.patni.com>
X-Sender: raonagar@sbm5501.patni.com
To: tutor@python.org
Message-ID: <Pine.SCO.3.91.1000329150309.22751B-100000@sbm5501.patni.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [Tutor] help
Sender: tutor-admin@python.org
Errors-To: tutor-admin@python.org
X-BeenThere: tutor@python.org
X-Mailman-Version: 2.0beta1
Precedence: bulk
List-Id: Discussion for learning programming with Python <tutor.python.org>

Please let me know how to link compile and link a module from VC++ 
platform.It is giving errors like Py_ParseTuple undecl
pam.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
spam.obj : error LNK2001: unresolved external symbol __imp__PyArg_ParseTuple
spam.obj : error LNK2001: unresolved external symbol __imp__Py_InitModule4
Debug/spam.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.