In order to get this to work, you'll need to install perl.
You can get perl FREE from www.perl.com, there are Windows/Mac/Unix/Linux distributions.
Once you've installed Perl, copy that script into your favorite text editor, save it as mtfix.pl (or whatever). You'll need to use your individual archives for the import. Take a look at one of the HTML files to figure out what you need to change in the perl script.
The way the perl script works, is that it starts reading the HTML from the start of the file and is looking for a match.
ie:
CODE
($title) = ($content =~ m|<span class="title">(.+)</span>|);
Here we are looking for the Title of the entry. The '(.+)' represents the text we are going to capture, my titles are sitting in a span class. All you need to do to get it to work for yours is to figure out what surrounds each item you are looking for.
A little more complicated is the way I got the author information out of the comments. For me, the author name was a link.
CODE
<span class="comments-post">Posted by: <a target="_blank" href="http://jason.sdf1.net">Jason</a> at December 18, 2003 09:43 AM</span>
So this was the code:
CODE
($Ctemp) = ($_ =~ m|Posted\sby:\s(.+)\/a\>|);
($CAuthor) = ($Ctemp =~ m|\>(.+)\<|);
($CURL) = ($Ctemp =~ m|href=\"(.+)\"|);
It grabs that whole line into the temp variable and then looks in the temp variable for the Name and URL. Notice how I had to use \s to represent spaces for the 'Posted by:' search. You may have to use a \n for new lines

Okay, so you think you've made the changes you need, and want to go ahead and try it out. Drop to a command prompt, with your saved script and the html files in the same folder and type:
CODE
perl mtfix.pl 0000001.html
Or whatever file name you choose. I recommend trying it out with just one of your files. It's going to print the results to the screen, you can read through and make sure that it's finding the right text. If not, go back and figure out why. If it's perfect, then use this:
CODE
perl mtfix.pl *.html > import.mt
Hope that works out for you. If you need more help, do a google search on Perl and Regular Expressions. Learn something