here's an alternative way to not BS, just for your task
store=[] #to store your results url="""http://www.reality.sk/zakazka/0747-003578/predaj/1-izb-byt/kosice-mestska-cast-sever-sladkovicova-kosice-sever/art-real-1-izb-byt-sladkovicova-ul-kosice-sever""" page=urllib2.urlopen(url) data=page.read() for table in data.split("</table>"): if "<table" in table and 'class="detail-char' in table: for item in table.split("</td>"): if "<td" in item: store.append(item.split(">")[-1].strip()) print ','.join(store)
Exit
$ ./python.py Celková podlahová plocha bytu,33 m2,Výťah,Áno,Nadzemné podlažie,Prízemné podlažie,Stav,Čiastočná rekonštrukcia,Konštrukcia bytu,tehlová,Forma vlastníctva,osobné
ghostdog74
source share