This commit is contained in:
2023-02-06 17:46:53 +01:00
parent faa6325606
commit 8456666bf9
5 changed files with 15 additions and 28 deletions
-11
View File
@@ -1,4 +1,3 @@
import re
from mrz.generator.td1 import TD1CodeGenerator
@@ -13,19 +12,9 @@ nationality = "CHN"
country_code = "FRA"
optinal_data = "<9918136584" # 14位
document_prefix = "IR"
expire_date = "230815"
# first_name = "Lei"
# last_name = "PAN"
# passport_number = "G22611379"
# birth_day = "841215"
# sex = "M"
# optinal_data = "19203301<<<<<<" #14位
# expire_date = "170510"
code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality,
last_name, first_name, optional_data1=optinal_data)
# code = TD3CodeGenerator("PO", "CHN", "PAN", "LEI", "E90600575", "CHN", "841215", "M", "270116", "MFMLMANK<<<<A9")
print(code)
+6 -6
View File
@@ -205,19 +205,19 @@ def write_destinaire_email(valid_contacts: list, generate_passport=True):
def save_mails_to_db():
excel_reader = ExcelHelper()
emails = excel_reader.read_email_pojo("/Users/panlei/Downloads/aol_mails_21.xlsx")
emails = excel_reader.read_email_pojo("/Users/lpan/Downloads/邮箱及密码.xlsx")
print(emails)
for mail in emails:
MONGO_STORE_MANAGER.save_destinary_emails(mail)
if __name__ == '__main__':
excel_reader = ExcelHelper()
contacts = excel_reader.read_names("/Users/panlei/Documents/rdv/未注册/500.xlsx")
print(contacts)
write_new_contacts_to_excel(valid_contacts=contacts)
# excel_reader = ExcelHelper()
# contacts = excel_reader.read_names("/Users/panlei/Documents/rdv/未注册/500.xlsx")
# print(contacts)
# write_new_contacts_to_excel(valid_contacts=contacts)
# 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, 64):
+4 -4
View File
@@ -56,7 +56,7 @@ def generate_titre_sejour_number(size=10) -> list:
if __name__ == '__main__':
# for i in range(1,200):
# print(get_random_id_number())
for i in range(1, 501):
print(get_random_passport_id_number())
# for id in generate_titre_sejour_number(100):
# print(id)
# for i in range(1, 501):
# print(get_random_passport_id_number())
for id in generate_titre_sejour_number(100):
print(id)