#! /usr/bin/python
# -*- coding: utf-8 -*-
from BeautifulSoup import BeautifulSoup

def main():
    soup = BeautifulSoup(open("./htmlcode.html"))

    contents = soup.findAll('table',{"class" : "std_tbl"})
    for c in contents:
        rows = c.findAll('tr')
        col_value(rows)
        print "**************"

def col_value(rows):
    for row in rows:
        cols = row.findAll('td')
        for col in cols:
            print col.text,
        print ""

if __name__ == "__main__":
    main()
