@@ -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