Exemple #1
0
 def do(self):
     origin, urls = self.queue.get()
     timeit(self.frontier.add, origin, origin, urls)
Exemple #2
0
 def do(self):
     origin, urls = self.queue.get()
     timeit(self.frontier.add, origin, origin, urls)
Exemple #3
0
 def do(self):
     url = timeit(self.frontier.pop, 'feeder')
     if not url:
         sleep(5)
     else:
         self.queue.put(url)
Exemple #4
0
 def do(self):
     url = timeit(self.frontier.pop, 'feeder')
     if not url:
         sleep(5)
     else:
         self.queue.put(url)