From b01e026f1cd720c4824f34bb6b055dc9a2c54c56 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Wed, 27 Apr 2022 17:29:55 +0200 Subject: [PATCH] maxThread to 10 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4402986..923b033 100644 --- a/main.py +++ b/main.py @@ -78,7 +78,7 @@ def start_book(start_slot_number, end_slot_number, store=0): contacts = excel_reader.read_contacts() global current_sim_position current_sim_position = 0 - with ThreadPoolExecutor(max_workers=5) as executor: + with ThreadPoolExecutor(max_workers=10) as executor: for modem in modem_list: current_sim_position = current_sim_position + 1 try: @@ -123,4 +123,4 @@ def get_proxy(phone_number): if __name__ == '__main__': # 修改起始行,结束行, 第三个参数store等于0的时候是随机,传入1的时候是总店 - start_book(3, 3, store=0) + start_book(32, 32, store=0)