From fd9449a74c8a87f59fd7f160de6d2c980444d530 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 3 Sep 2022 23:18:36 +0200 Subject: [PATCH] optimization for audio recognize --- src/mail/mail_confirmation.py | 2 +- src/workers/GeoCaptchSolver.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mail/mail_confirmation.py b/src/mail/mail_confirmation.py index ffbd28b..d98ea9b 100644 --- a/src/mail/mail_confirmation.py +++ b/src/mail/mail_confirmation.py @@ -156,7 +156,7 @@ def read_mails_and_find_confirmation_contacts(): for mail in mails_messages: message_body = mail.body for item in successful_items: - if item.id in message_body: + if item.id in message_body and item.id != "welcome": accepted_appointment_list.append(item) elif "10:30" in message_body and (item.email == mail.mail_address or item.email in message_body): accepted_appointment_list.append(item) diff --git a/src/workers/GeoCaptchSolver.py b/src/workers/GeoCaptchSolver.py index 891dc08..81bfd15 100644 --- a/src/workers/GeoCaptchSolver.py +++ b/src/workers/GeoCaptchSolver.py @@ -11,7 +11,14 @@ from src.params import get_random_wait_time WAV_FILE_REGEX = "https:[\/a-z0-9.-]+.wav" -number_text_dict = {'eight': 8, 'take': 8, 'zero': 0, 'one': 1, 'juan': 1, 'won': 1, 'to': 2, 'two': 2, 'three': 3, +number_text_dict = {'eight': 8, + 'take': 8, + 'eighty': 8, + 'zero': 0, + 'one': 1, 'juan': 1, + 'wanna': 1, 'won': 1, 'to': 2, 'two': 2, + 'free': 3, + 'three': 3, 'four': 4, 'for': 4, 'five': 5,