need help with python syntax

homepricemaps at gmail.com homepricemaps at gmail.com
Sat Dec 24 23:31:17 EST 2005


if i have a piece of html that looks like this

<tr class="rulesbody">
<td width="183" class="rulesbody">cnn.com

and i want to scrape out cnn.com , what syntax would i use?  i have
tried this and it doesn't work

for incident in bs('td', {'class' : 'rulesbody'}, {'class' :
'rulesbody'} ):




More information about the Python-list mailing list