On Thu, May 29, 2008 at 4:17 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
> >From my previous post, I have tis so far:
>
> [code]
> import os
> from BeautifulSoup import BeautifulSoup
>
>
> rootdir='/home/david/test'
>
> def upDateTable(line):
>    soup = BeautifulSoup(''.join(file))
>
>
>    return line

Notice you are not using or changing line at all here.

BS will work best for this if you pass it the entire contents of the
file, not a line at a time as you are doing.

To figure out the exact commands you need to give BS, it is very
helpful to experiment on the command line.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to