from BeautifulSoup import BeautifulSoup import urllib MYCODE = 'KR5206655114' MYCOUNT = 1000 URL = 'http://bank.naver.com/fund/fund_detail.nhn?fund_cd=%(fundcode)s' def iterfunds(code): f = urllib.urlopen(URL % {'fundcode': code}) soup = BeautifulSoup(f) for inc in soup('td', {'class': 'pd03_num'}): current_price = inc.contents[0] return current_price def getAsset(mycount,mycode): cv = iterfunds..