add class to read all contacts' emails
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user