add class to read all contacts' emails

This commit is contained in:
2023-07-27 14:10:02 +02:00
parent 1ae84725df
commit f441a2796f
2 changed files with 27 additions and 11 deletions
+13
View File
@@ -0,0 +1,13 @@
from src.db.mongo_manager import MONGO_STORE_MANAGER
from src.utils.excel_reader import ExcelHelper
def upload_contacts_list():
excel_helper = ExcelHelper()
contacts_to_book = excel_helper.read_contacts("/Users/lpan/Desktop/yahoo_aol.xlsx")
return contacts_to_book
if __name__ == '__main__':
contacts_to_book = upload_contacts_list()
MONGO_STORE_MANAGER.upload_contact_list(contacts_to_book)