[Tutor] using python to write web page
naheed arafat
naheedcse at gmail.com
Thu Jun 16 02:46:56 CEST 2011
Got a question in this context. If i would like to edit an html file.
suppose i want to edit the values of href tags or the img tags, what should
i do?
should I
1. read the file as string,
2.parse it for the tags,
3.edit the tags
4.and then replace the tags by the editted tags
5.delete the main file
6. write a new one with the same name?
Or there is any python module to get this job done?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110616/5a59096b/attachment.html>
More information about the Tutor
mailing list