class JobGetter(threading.Thread): """Threaded Url Grab""" def __init__(self, queue, infoCollection): threading.Thread.__init__(self) self.queue = queue self.getter = IndeedPageGetter(infoCollection) def run(self): while True: #grabs host from queue page, pageNo = self.queue.get() self.getter.processPage(page, pageNo)
class JobGetter(threading.Thread): """Threaded Url Grab""" def __init__(self, queue, infoCollection): threading.Thread.__init__(self) self.queue = queue self.getter = IndeedPageGetter(infoCollection) def run(self): while True: #grabs host from queue page,pageNo = self.queue.get() self.getter.processPage(page,pageNo)
def __init__(self, queue, infoCollection): threading.Thread.__init__(self) self.queue = queue self.getter = IndeedPageGetter(infoCollection)