fix wrong proxy list
This commit is contained in:
@@ -98,13 +98,14 @@ class AppointmentRequestSendor(threading.Thread):
|
||||
|
||||
def on_message(self, ch, method, properties, body):
|
||||
print(f" [x] Received {body}")
|
||||
print("message count in queue is {}".format(self.cookiesPublisher.message_count()))
|
||||
_message_count = self.cookiesPublisher.message_count()
|
||||
print("message count in queue is {}".format(_message_count))
|
||||
sender = Sender(body.decode("UTF-8"), cookiesPublisher=self.cookiesPublisher,
|
||||
proxy_to_use=random.choice(PROXY_LIST_DE))
|
||||
proxy_to_use=random.choice(self.proxy_to_use_list))
|
||||
self.contact_list = filter_contacts(self.contact_list)
|
||||
# remove already booked contacts
|
||||
random.shuffle(self.contact_list)
|
||||
if len(self.contact_list) > 0 and is_open():
|
||||
if len(self.contact_list) > 0 and is_open() and _message_count > 40:
|
||||
captchaResultGetter = CaptchaResultGetter()
|
||||
print("contact number is {}".format(len(self.contact_list)))
|
||||
self.contact_list = filter_contacts(self.contact_list)
|
||||
|
||||
Reference in New Issue
Block a user