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