[Tutor] BeautifulSoup - getting cells without new line characters

jonasmg at softhome.net jonasmg at softhome.net
Sun Apr 2 00:14:14 CEST 2006


And the solution to get the state and capital columns (where there are 
anchors): 

for row in table('tr'):
   for cell in row.fetch('a')[0:2]:
       print cell.string 


More information about the Tutor mailing list