HTML parser example, anybody?

Gerhard Haering haering at sunhalle8.informatik.tu-muenchen.de
Thu Apr 27 14:39:05 EDT 2000


Hi!

I want to transform my own HTML templates (with a few template tags,
special comments, and so on) into final HTML for the browser. I would like
to use Pyhton's htmllib, but from the docs I can get no clue on how to get
it done. I seem to have to use a writer and a formatter class ... 

I would greatly appreciate an example of HTML -> HTML using
htmllib/sgmllib. Can anybody provide pointers/code snippets?

Gerhard



More information about the Python-list mailing list