Ned Batchelder  committed 04f368f

Use 6 threads.

  • Participants
  • Parent commits 708ffac

Comments (0)

Files changed (1)


     """Harvest content from"""
     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: