Re: Beautiful Soup iterator question....

2007-04-20 Thread Paul McGuire
On Apr 20, 2:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > did you try something like (untested) > > cell1, cell2, cell3, cell4, cell5, \ > cell6, cell7, cell8 = row.findAll("td") > > No need for the "for" if you want to handle each cell differently, you > won;t be iterating o

Beautiful Soup iterator question....

2007-04-20 Thread cjl
P: I am screen-scraping a table. The table has an unknown number of rows, but each row has exactly 8 cells. I would like to extract the data from the cells, but the first three cells in each row have their data nested inside other tags. So I have the following code: for row in table.findAll("tr

Re: Beautiful Soup iterator question....

2007-04-20 Thread Steve Holden
cjl wrote: > P: > > I am screen-scraping a table. The table has an unknown number of rows, > but each row has exactly 8 cells. I would like to extract the data > from the cells, but the first three cells in each row have their data > nested inside other tags. > > So I have the following code: >