Merge branch 'master' into feature/navigator.platform

This commit is contained in:
2022-04-02 09:59:05 +02:00
5 changed files with 19 additions and 10 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ class Worker:
browser = self.tls.playwright.firefox.launch(headless=False)
url = reserve_pojo.url
phone_number = reserve_pojo.phone
url_to_check = url.replace("register/", "")
url_to_check = url_to_check + "?lang=fr"
# url_to_check = url.replace("register/", "")
url_to_check = url + "?lang=fr"
print("url is " + url_to_check)
content = None
random_id_number = str(phone_number)[1:len(str(phone_number))]
BIN
View File
Binary file not shown.
+1
View File
@@ -35,3 +35,4 @@ if __name__ == '__main__':
logger = logging.getLogger()
logger.addHandler(logging.StreamHandler(stream=sys.stdout))
config_and_start_jobs()
# start_waiting_sms()
+12 -2
View File
@@ -3,8 +3,16 @@ import string
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T','1','2','3','4','5','6','7','8','9']
def get_random_id_number() -> str:
# write_the_valid_profiles_to_excel()
S = 8 # number of characters in the string.
# call random.choices() string module to find the string in Uppercase + numeric data.
ran = ''.join(random.choices(string.digits, k=S))
id_number = "57" + str(ran)
# print("The randomly generated string is : 94" + str(ran)) # print the random data
return id_number
def get_random_passport_id_number() -> str:
# write_the_valid_profiles_to_excel()
S = 7 # number of characters in the string.
# call random.choices() string module to find the string in Uppercase + numeric data.
@@ -15,5 +23,7 @@ def get_random_id_number() -> str:
if __name__ == '__main__':
for i in range(1,200):
# for i in range(1,200):
# print(get_random_id_number())
for i in range(1,570):
print(get_random_id_number())
+4 -6
View File
@@ -20,7 +20,9 @@ commandor = CommandorPage()
thread_event = None
current_gsm_modem = None
card_pool = CardPool(CARD_POOL_PORT)
init_logger()
logger = logging.getLogger()
logger.addHandler(logging.StreamHandler(stream=sys.stdout))
def get_devices_ports() -> list:
return MODEM_POOL_PORTS
@@ -88,9 +90,7 @@ def start_waiting_sms():
slot_number = 1
slot_sum = 21
slot_list = list(range(slot_number, slot_sum + 1))
random.shuffle(slot_list)
for i in slot_list:
random.shuffle(params.MODEM_POOL_PORTS)
card_pool.reset()
logger.info("will switch to " + str(i))
card_pool.switch_to_slot(i)
@@ -116,7 +116,5 @@ def start_waiting_sms():
if __name__ == '__main__':
init_logger()
logger = logging.getLogger()
logger.addHandler(logging.StreamHandler(stream=sys.stdout))
start_waiting_sms()