[Tutor] HTML --> TXT?

Charlie Derr drivel_drool@bigfoot.com
Wed, 29 Mar 2000 14:20:37 -0500


okay then, how about:


import os
os.system('lynx -dump ... ')

(if you have linux of course)

heh --  okay, i admit, i'm baiting  --
the thing is that i found that info about lynx useful and probably wouldn't
have thought of it myself  --  i'm not in favor of people being browbeaten
into "only" discussing python

	just my .019999999999...

		~c

~ -----Original Message-----
~ From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
~ Deirdre Saoirse
~ Sent: Wednesday, March 29, 2000 1:42 PM
~ To: William Park
~ Cc: Curtis Larsen; tutor@python.org
~ Subject: Re: [Tutor] HTML --> TXT?
~
~
~ 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>
~
~
~ _______________________________________________
~ Tutor maillist  -  Tutor@python.org
~ http://www.python.org/mailman/listinfo/tutor
~
~