[Tutor] HTML --> TXT?
Deirdre Saoirse
deirdre@deirdre.net
Wed, 29 Mar 2000 10:42:09 -0800 (PST)
On Wed, 29 Mar 2000, William Park wrote:
> On Wed, Mar 29, 2000 at 09:09:08AM -0600, Curtis Larsen wrote:
> > Is there a fairly simple Python-ish way to convert an HTML file to text?
> If you have Linux, then 'lynx -dump ...' will do it.
There are n ways to skin the cat, but this does not answer the question
asked.
If someone asks for a way to do it in *python*, given that this is a tutor
list, please try and offer a solution in python. Very often, a person is
trying to grasp concepts of how to do things in python. Furthermore, they
may be trying to do it in platforms that don't have the other tools called
for.
Since someone else has responded to the issue of lynx and availability on
more platforms than Linux, I won't.
--
_Deirdre * http://www.linuxcabal.org * http://www.deirdre.net
"The year after I was born, we walked on the moon. Now, 31 years later,
it's considered an impressive feat of science to grow tomatoes in low
Earth orbit." -- John Miles <ke5fx@qsl.net>