parsing tables with beautiful soup?

cjl cjlesh at gmail.com
Wed Mar 21 14:10:27 EDT 2007


This works:

for row in soup.find("table",{"class": "class_name"}):
	for cell in row:
		print cell.contents[0]

Is there a better way to do this?

-cjl




More information about the Python-list mailing list