[Tutor] BeautifulSoup - getting cells without new line characters

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sun Apr 2 03:54:37 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

Hi Jonas,

That's good to hear!  So does everything work for you then?



More information about the Tutor mailing list