use home path
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from src.db.mongo_manager import MONGO_STORE_MANAGER
|
from src.db.mongo_manager import MONGO_STORE_MANAGER
|
||||||
from src.utils.excel_reader import read_contacts
|
from src.utils.excel_reader import read_contacts
|
||||||
|
|
||||||
# 检查联系人表的有邮件有没有在数据库中
|
# 检查联系人表的有邮件有没有在数据库中
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
contacts = read_contacts("/Users/panlei/Desktop/yahoo_aol_valid_16.xlsx")
|
contacts = read_contacts(str(Path.home()) + "/Desktop/contact_list_2024-06-01.xlsx")
|
||||||
mail_list = MONGO_STORE_MANAGER.get_destination_emails()
|
mail_list = MONGO_STORE_MANAGER.get_destination_emails()
|
||||||
print("mail_list size is " + str(len(mail_list)))
|
print("mail_list size is " + str(len(mail_list)))
|
||||||
mail_raw_list =[]
|
mail_raw_list = []
|
||||||
for mail_address in mail_list:
|
for mail_address in mail_list:
|
||||||
mail_raw_list.append(mail_address.mail)
|
mail_raw_list.append(mail_address.mail)
|
||||||
|
|
||||||
Reference in New Issue
Block a user