beautifulSoup 4.1

Joe Farro joe.farro at gmail.com
Sat Apr 4 17:45:53 CEST 2015


Could use zip:

tds = iter(soup('td'))
for abbr, defn in zip(tds, tds):
 	print abbr.get_text(), defn.get_text()



More information about the Python-list mailing list