Ver Fonte

removed an unnecessary folder

Harsh Parikh há 2 anos atrás
pai
commit
7be1a8ea32

+ 0 - 16
document_download/db_utils.py

@@ -1,16 +0,0 @@
-from utils import Base, metadata_rc, session_rc
-from sqlalchemy import Table
-
-
-class Documents(Base):
-    __table__ = Table("core_document", metadata_rc)
-
-
-def get_documents():
-    documents = session_rc.query(Documents).all()
-    for document in documents:
-        yield document
-
-
-if __name__ == "__main__":
-    get_documents()

+ 0 - 21
document_download/documents_download.py

@@ -1,21 +0,0 @@
-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)

+ 0 - 14
document_download/utils.py

@@ -1,14 +0,0 @@
-import os
-
-from sqlalchemy import create_engine, MetaData, orm
-from sqlalchemy.ext.declarative import declarative_base
-
-pengine_rc = create_engine("postgresql://xpertconnect:123@localhost:5432/rsa_crawling")
-
-Base = declarative_base()
-metadata_rc = MetaData(pengine_rc)
-metadata_rc.reflect()
-
-Session_rc = orm.sessionmaker(pengine_rc)
-
-session_rc = Session_rc()