correction for phone number format
This commit is contained in:
@@ -180,9 +180,11 @@ class ExcelHelper:
|
||||
|
||||
|
||||
def get_random_fr_phone_numbers():
|
||||
length = 7 # number of characters in the string.
|
||||
_prefix = random.choice(fr_phone_number_prefix)
|
||||
|
||||
length = 9 - len(_prefix) # number of characters in the string.
|
||||
ran = ''.join(random.choices(string.digits, k=length))
|
||||
_phone_number = random.choice(fr_phone_number_prefix) + str(ran)
|
||||
_phone_number = _prefix + str(ran)
|
||||
return _phone_number
|
||||
|
||||
|
||||
@@ -219,7 +221,7 @@ if __name__ == '__main__':
|
||||
# excel_reader = ExcelHelper()
|
||||
# excel_reader.check_contact_list("/Users/lpan/Desktop/contact_email_valid.xlsx")
|
||||
# read_links_to_click("/Users/lpan/Downloads/links.xlsx")
|
||||
save_mails_to_db()
|
||||
# save_mails_to_db()
|
||||
# for mail in excel_reader.read_mails_and_pwd():
|
||||
# MONGO_STORE_MANAGER.insert_email(mail)
|
||||
for i in range(1, 300):
|
||||
|
||||
Reference in New Issue
Block a user