123456789101112131415161718192021 |
- import os
- import subprocess
- from db_utils import get_documents
- def main(PATH):
- itr = 0
- for document in get_documents():
- url = document.url
- print(url)
- itr += 1
- if itr == 5:
- break
- if __name__ == "__main__":
- HOME_DIR = os.path.expanduser("~")
- BASE_DIR = "Code/pdf_parser/document_download_from_server"
- PATH = os.path.join(HOME_DIR, BASE_DIR)
- main(PATH)
|