python: html writer?

Posted by Bin Chen on Stack Overflow See other posts from Stack Overflow or by Bin Chen
Published on 2011-01-06T05:37:04Z Indexed on 2011/01/06 5:53 UTC
Read the original article Hit count: 213

Filed under:
|

With jquery it's very easy to insert some element inside another element using the selector technology, I am wondering if there is any python library that can do things similar with jquery, the reason is I want server side python program to produce the static pages, which needs to parse the html and insert something into it.

Or other alternative, not in python language at all?

EDIT: To be clear, I want to use python to write below program:

h = html.parse('temp.html')
h.find('#idnum').html('<b>my html generated</b>')

h.close()

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about python