can exchange cookies
This commit is contained in:
+5
-4
@@ -7,7 +7,8 @@ from threading import Thread
|
||||
from db.mongo_manager import MONGO_STORE_MANAGER
|
||||
from excel_reader import read_contacts
|
||||
from models.contact_pojo import ContactPojo
|
||||
from queue_message.CookiesPublisher import CookiesPublisher, REQUEST_DATA_QUEUE_DE, REQUEST_DATA_QUEUE_TEST
|
||||
from queue_message.CookiesPublisher import CookiesPublisher, REQUEST_DATA_QUEUE_DE, REQUEST_DATA_QUEUE_TEST, \
|
||||
REQUEST_DATA_OBJECT, TEST_QUEUE
|
||||
from queue_message.appointmentrequestsender import AppointmentRequestSender, REQUEST_DATA_QUEUE
|
||||
from utiles import is_time_between
|
||||
from workers.captcha_result_getter import CaptchaResultGetter, HERMES_REGISTER
|
||||
@@ -88,14 +89,14 @@ def send_appointment_request(message_queue_name, _contact_list):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-03-14-2.xlsx'
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-03-09.xlsx'
|
||||
_contact_list = read_contacts(contacts_file_path)
|
||||
_segment_number = 1
|
||||
_segment_number = 10
|
||||
for i in range(0, _segment_number):
|
||||
print(i)
|
||||
_step = int(len(_contact_list) / _segment_number)
|
||||
_sublist = _contact_list[i:_step * (i + 1)]
|
||||
print(_sublist[0])
|
||||
print(_sublist[-1])
|
||||
_thread1 = Thread(target=send_appointment_request, args=(REQUEST_DATA_QUEUE_DE, _sublist))
|
||||
_thread1 = Thread(target=send_appointment_request, args=(REQUEST_DATA_OBJECT, _sublist))
|
||||
_thread1.start()
|
||||
|
||||
Reference in New Issue
Block a user