correction on mail_reader_all_contacts.py
This commit is contained in:
@@ -225,11 +225,11 @@ def need_to_valid_url(url: str, successful_items) -> bool:
|
|||||||
|
|
||||||
def need_to_check_email(mail: str, successful_items) -> bool:
|
def need_to_check_email(mail: str, successful_items) -> bool:
|
||||||
print("successful_items size is " + str(len(successful_items)))
|
print("successful_items size is " + str(len(successful_items)))
|
||||||
if mail in REDIRECTION_MAILS:
|
# if mail in REDIRECTION_MAILS:
|
||||||
return True
|
# return True
|
||||||
# return True
|
# return True
|
||||||
# get all the item with the current mail
|
# get all the item with the current mail
|
||||||
filtered_items = list(filter(lambda item: item.email == mail, successful_items))
|
filtered_items = list(filter(lambda item: item.mail == mail, successful_items))
|
||||||
# has validated value
|
# has validated value
|
||||||
if len(filtered_items) > 0:
|
if len(filtered_items) > 0:
|
||||||
validated_items = list(filter(
|
validated_items = list(filter(
|
||||||
@@ -294,9 +294,9 @@ def read_all_mails():
|
|||||||
# else:
|
# else:
|
||||||
url = match.group(0)
|
url = match.group(0)
|
||||||
if need_to_valid_url(url, successful_items):
|
if need_to_valid_url(url, successful_items):
|
||||||
MONGO_STORE_MANAGER.save_links_to_validate(url, mail.to_address)
|
|
||||||
# url_validator = LinkValidator(url)
|
|
||||||
print("need to validate url: " + url)
|
print("need to validate url: " + url)
|
||||||
|
MONGO_STORE_MANAGER.save_links_to_validate(url, mail.to_address,_all_contact_list=contact_to_book_list)
|
||||||
|
# url_validator = LinkValidator(url)
|
||||||
# executor.submit(url_validator.start_page, params.get_proxy(ProxyType.OXYLABS), False)
|
# executor.submit(url_validator.start_page, params.get_proxy(ProxyType.OXYLABS), False)
|
||||||
else:
|
else:
|
||||||
print("do not need to click url --> {}".format(mail.mail_address))
|
print("do not need to click url --> {}".format(mail.mail_address))
|
||||||
|
|||||||
Reference in New Issue
Block a user