help with lists and writing to file in correct order
homepricemaps at gmail.com
homepricemaps at gmail.com
Mon Dec 26 20:44:43 EST 2005
sorry guys, here is the code
for incident in bs('a', {'class' : 'price'}):
price = ""
for oText in incident.fetchText( oRE):
price += oText.strip() + "','"
for incident in bs('div', {'class' : 'store'}):
store = ""
for oText in incident.fetchText( oRE):
store += oText.strip() + "','"
for incident in bs('h2', {'id' : 'food'}):
food = ""
for oText in incident.fetchText( oRE):
food += oText.strip() + "','"
More information about the Python-list
mailing list