Use of HTMLparser to change language

pranav pranny at
Fri Mar 20 10:59:10 CET 2009

Greetings All,

I have huge number of HTML files, all in english. I also have their
counterpart files in Spanish. The non english files have their look
and feel a little different than their english counterpart.

My task is to make sure that the English HTML files contain the
Spanish text, with retaining the English look and feel.

The most obvious and stupid way is to open the English and Spanish
files in some HTML Editor. Look for the english text, see its
counterpart in spanish and then replace it. (I don't know spanish, but
as i said the look and feel is only little different, so i can easily
guess which text is what + google translate).

I am sure there is a python way of solving this problem.

Can anyone help me out with some solution.



More information about the Python-list mailing list