[Tutor] HTML --> TXT?

Curtis Larsen curtis.larsen@Covance.Com
Wed, 29 Mar 2000 09:09:08 -0600


Is there a fairly simple Python-ish way to convert an HTML file to text?

I'm not even talking about reformatting the text (where applicable)
based on the tags -- though that'd be pretty cool -- I'm just looking
for a good way to rip out the tags and make the file more
human-friendly.  HTMLLIB and URLLIB don't seem to have it -- is there
another module that does this?

Thanks!
Curtis

begin 644 TEXT.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,"!4
M<F%N<VET:6]N86PO+T5.(CX-"CQ(5$U,/CQ(14%$/@T*/$U%5$$@8V]N=&5N
M=#TB=&5X="]H=&UL.R!C:&%R<V5T/6ES;RTX.#4Y+3$B(&AT='`M97%U:78]
M0V]N=&5N="U4>7!E/@T*/$U%5$$@8V]N=&5N=#TB35-(5$U,(#4N,#`N,CDQ
M.2XV,S`W(B!N86UE/4=%3D52051/4CX\+TA%040^#0H\0D]$62!B9T-O;&]R
M/2-F9F9F9F8@#0IS='EL93TB1D].5#H@,3!P="!!<FEA;#L@34%21TE.+4Q%
M1E0Z(#)P>#L@34%21TE.+51/4#H@,G!X(CX-"CQ$258^27,@=&AE<F4@82!F
M86ER;'D@<VEM<&QE(%!Y=&AO;BUI<V@@=V%Y('1O(&-O;G9E<G0@86X@2%1-
M3"!F:6QE('1O(`T*=&5X=#\\+T1)5CX-"CQ$258^)FYB<W`[/"]$258^#0H\
M1$E6/DDG;2!N;W0@979E;B!T86QK:6YG(&%B;W5T(')E9F]R;6%T=&EN9R!T
M:&4@=&5X="`H=VAE<F4@87!P;&EC86)L92D@8F%S960@#0IO;B!T:&4@=&%G
M<R`M+2!T:&]U9V@@=&AA="=D(&)E('!R971T>2!C;V]L("TM($DG;2!J=7-T
M(&QO;VMI;F<@9F]R(&$@9V]O9"!W87D@#0IT;R!R:7`@;W5T('1H92!T86=S
M(&%N9"!M86ME('1H92!F:6QE(&UO<F4F;F)S<#MH=6UA;BUF<FEE;F1L>2XF
M;F)S<#L@2%1-3$Q)0B`-"F%N9"!54DQ,24(@9&]N)W0@<V5E;2!T;R!H879E
M(&ET("TM(&ES('1H97)E(&%N;W1H97(@;6]D=6QE('1H870@9&]E<R`-"G1H
M:7,_/"]$258^#0H\1$E6/B9N8G-P.SPO1$E6/@T*/$1)5CY4:&%N:W,A/"]$
M258^#0H\1$E6/D-U<G1I<SPO1$E6/@T*/$1)5CXF;F)S<#L\+T1)5CX\+T)/
,1%D^/"](5$U,/@T*
`
end


-----------------------------------------------------
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that Covance can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.