Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41235
| Date | 2013-03-14 19:09 +0100 |
|---|---|
| From | Tracubik <affdfsdfdsfsd@b.com> |
| Newsgroups | comp.lang.python |
| Subject | editing a HTML file |
| Message-ID | <51421253$0$26783$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
Hi all,
I'would like to make a script that automatically change some text in a
html file.
I need to make some changes in the text of <p> tags
My question is: there is a way to just "update/substitute" the text in
the html <p> tags or do i have to make a new modified copy of the html file?
To be clear, i'ld like to make something like this:
open html file
for every <p> tags:
if "foo" in text:
change "foo" in "bar"
close html file
any sample would be really appreciated
I'm really a beginner as you can see
Thanks
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
editing a HTML file Tracubik <affdfsdfdsfsd@b.com> - 2013-03-14 19:09 +0100 Re: editing a HTML file Dave Angel <davea@davea.name> - 2013-03-14 21:31 -0400
csiph-web