text representation of HTML
ksenia.marasanova at gmail.com
Thu Sep 21 14:46:12 CEST 2006
Sorry for the late reply... better too late than never :)
Thanks to all for the tips. Stripogram is the winner, since it is the
most configurable and accept line-length parameter, which is handy for
On 7/19/06, Laurent Rahuel <lrahuel.notgood at voila.fr> wrote:
> I guess stripogram would be more pythonic :
> Diez B. Roggisch wrote:
> > Ksenia Marasanova wrote:
> >> Hi,
> >> I am looking for a library that will give me very simple text
> >> representation of HTML.
> >> For example
> >> <div><h1>Title</h1><p>This is a <br />test</p></div>
> >> will be transformed to:
> >> Title
> >> This is a
> >> test
> >> i want to send plain text alternative of html email, and would prefer
> >> to do it automatically from HTML source.
> >> Any hints?
> > html2text is a commandline tool. You can invoke it from python using
> > subprocess.
> > Diez
More information about the Python-list