text representation of HTML

Ksenia Marasanova 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
email...

Ksenia.

On 7/19/06, Laurent Rahuel <lrahuel.notgood at voila.fr> wrote:
> Hi,
>
> I guess stripogram would be more pythonic :
> http://sourceforge.net/project/showfiles.php?group_id=1083
>
> Regards,
>
> Laurent
>
> 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list