add mail_manager.py

This commit is contained in:
2022-08-04 12:11:28 +02:00
parent 644cd7fad9
commit d707bd56e0
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
from src.mail.mail_reader import read_mails
if __name__ == '__main__':
read_mails()
+6 -2
View File
@@ -111,8 +111,7 @@ def need_to_valid_url(url: str, successful_items) -> bool:
return False return False
# check whether the url has already been clicked def read_mails():
if __name__ == '__main__':
mail_address1 = MailAddress(mail="appointment2022@aol.com", password="gyilpmvyyvlcaviq") mail_address1 = MailAddress(mail="appointment2022@aol.com", password="gyilpmvyyvlcaviq")
mail_address2 = MailAddress(mail="chenpeijun@aol.com", password="ytifuwguknzifqyb") mail_address2 = MailAddress(mail="chenpeijun@aol.com", password="ytifuwguknzifqyb")
mail_address3 = MailAddress(mail="ciyuexie@aol.com", password="czezlmmyypokdfce") mail_address3 = MailAddress(mail="ciyuexie@aol.com", password="czezlmmyypokdfce")
@@ -135,3 +134,8 @@ if __name__ == '__main__':
executor.submit(url_validator.start_page, params.get_proxy(ProxyType.BRIGHT_DATA), True) executor.submit(url_validator.start_page, params.get_proxy(ProxyType.BRIGHT_DATA), True)
else: else:
print("do not need to click url --> {}".format(mail)) print("do not need to click url --> {}".format(mail))
# check whether the url has already been clicked
if __name__ == '__main__':
read_mails()