robin [EMAIL PROTECTED] wrote:
hi,
i remember seeing this simple python function which would take raw html
and output the content (body?) of the page as plain text (no .. tags
etc)
i have been looking at htmllib and htmlparser but this all seems to
complicated for what i'm looking for. i
[EMAIL PROTECTED] wrote:
text=re.sub(r'(?s)\.+?\', '', html_text)
(this will keep html entities, though)
here's a variation that handles that too:
http://effbot.org/zone/re-sub.htm#strip-html
/F
--
http://mail.python.org/mailman/listinfo/python-list
hi,
i remember seeing this simple python function which would take raw html
and output the content (body?) of the page as plain text (no .. tags
etc)
i have been looking at htmllib and htmlparser but this all seems to
complicated for what i'm looking for. i just need the main text in the
body of
robin wrote:
i remember seeing this simple python function which would take raw html
and output the content (body?) of the page as plain text (no .. tags
etc)
i have been looking at htmllib and htmlparser but this all seems to
complicated for what i'm looking for. i just need the main text
lucks yummy. merci beaucoup.
robin
--
http://mail.python.org/mailman/listinfo/python-list
i remember seeing this simple python function which would take raw html
and output the content (body?) of the page as plain text (no .. tags
etc)
http://www.aaronsw.com/2002/html2text/
--
http://mail.python.org/mailman/listinfo/python-list