here is my part of program,you can see main structure,i want to wrap it in
class ,
class webdata(object):
def __init__(self,arg):
jobs = Queue.Queue()
for x in name:
jobs.put(self.url)
def download(self):
while not
code1:
import lxml.html
import urllib
down='http://finance.yahoo.com/q/op?s=C+Options'
content=urllib.urlopen(down).read()
root=lxml.html.document_fromstring(content)
table = root.xpath("//table[@class='yfnc_mod_table_title1']")[0]
tds=table.xpath("tr[@valign='top']//td")
for td in tds:
print