break when the get_csrf is blocked

This commit is contained in:
2024-04-06 09:32:36 +02:00
parent 8f3b35f55f
commit cbf88f94f6
5 changed files with 316 additions and 4 deletions
+6 -3
View File
@@ -33,7 +33,7 @@ def filter_contacts(_contact_list: list) -> list:
for booked in already_sent_contacts:
if contact.mail == booked.email:
_to_add = False
#如果已经收到链接了,就不要再请求
# 如果已经收到链接了,就不要再请求
for link_to_validate in _link_to_validate_list:
if contact.mail == link_to_validate.email:
logger.info("{}: link already received".format(contact.mail))
@@ -69,11 +69,14 @@ def send_appointment_request(message_queue_name, _contact_list):
receiver.run()
def start(contact_list_file):
pass
if __name__ == '__main__':
contacts_file_path = '~/Desktop/contact_list_2024-03-23.xlsx'
contacts_file_path = '~/Desktop/contact_list_2024-04-05-2.xlsx'
_contact_list = read_contacts(contacts_file_path)
_contact_list_to_book = filter_contacts(_contact_list)
_segment_number = 5
_segment_number = 10
logger.info("{} contacts to book".format(len(_contact_list_to_book)))
last_thread = None
for i in range(0, _segment_number):