[Tutor] BeautifulSoup - getting cells without new line characters

Kent Johnson kent37 at tds.net
Fri Mar 31 18:38:29 CEST 2006

jonasmg at softhome.net wrote:
> You have reason but the problem is that some cells have anchors.
> Sorry, I forgot myself to say it. 
> and using: 
> for row in table('tr'):
>     cellText = [cell.string for cell in row('td')]
>     print cellText 
> I get null values in cell with anchors. 

Can you give an example of your actual data and the result you want to 
generate from it? I can't give you a correct answer if you don't tell me 
the real question.


More information about the Tutor mailing list