Harsh Parikh 2 лет назад
Родитель
Сommit
d2322138e2

+ 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