Commits

Ned Batchelder committed 04f368f

Use 6 threads.

Comments (0)

Files changed (1)

     """Harvest content from tabblo.com."""
 
     ids_txt_fname = "ids.txt"
+    num_threads = 6
 
     def __init__(self, username, password, original, logfn):
         if "@" in username:
                     # Didn't finish it, add back into the queue to try again later
                     todo.put((id, i, num_retries+1))
 
-        downloaders = [DownloaderThread(tid, self) for tid in range(10)]
+        downloaders = [DownloaderThread(tid, self) for tid in range(self.num_threads)]
         for dl in downloaders:
             dl.start()