This commit is contained in:
2022-03-29 09:48:21 +02:00
parent 20d28bbbf3
commit 9172a5d04c
+2 -1
View File
@@ -57,6 +57,7 @@ class Worker:
phone_number = reserve_pojo.phone
url_to_check = url.replace("register/", "")
url_to_check = url_to_check + "?lang=fr"
print("url is " + url_to_check)
content = None
random_id_number = str(phone_number)[1:len(str(phone_number))]
proxy_username = "panleicim-stc-fr-" + random_id_number
@@ -100,7 +101,7 @@ if __name__ == '__main__':
collection = db_manager.get_all_successful_items_for_day("2022-03-16")
count = 0
task_list = list()
with ThreadPoolExecutor(max_workers=6) as executor:
with ThreadPoolExecutor(max_workers=10) as executor:
for appointment in collection.stream():
worker = Worker()
count = count + 1