瀏覽代碼

renamed folder

Harsh Parikh 2 年之前
父節點
當前提交
d2322138e2
共有 3 個文件被更改,包括 2 次插入5 次删除
  1. 0 0
      document_download/db_utils.py
  2. 2 5
      document_download/documents_download.py
  3. 0 0
      document_download/utils.py

+ 0 - 0
document_download_from_server/db_utils.py → document_download/db_utils.py


+ 2 - 5
document_download_from_server/documents_download.py → document_download/documents_download.py

@@ -1,7 +1,5 @@
-from asyncio.subprocess import PIPE
 import os
 import subprocess
-from subprocess import Popen
 from db_utils import get_documents
 
 
@@ -9,10 +7,9 @@ def main(PATH):
     itr = 0
     for document in get_documents():
         url = document.url
-        args = ["wget", "-r", "-l", "1", "-p", "-P", PATH, url]
-        Popen(args, stdout=PIPE)
+        print(url)
         itr += 1
-        if itr == 1:
+        if itr == 5:
             break
 
 

+ 0 - 0
document_download_from_server/utils.py → document_download/utils.py