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
+1 -4
View File
@@ -62,10 +62,7 @@ def get_proxy(proxy_type=ProxyType.RESIDENTIAL):
if __name__ == '__main__':
# 修改联系人行,结束联系人行 第三个参数store等于0的时候是随机,传入1的时候是总店
start_book(1, 2600, store_choose_state=0, mode=ModeEnum.AUTOMATIC, headless=False, max_workers=60,
start_book(3100, 3105, store_choose_state=0, mode=ModeEnum.AUTOMATIC, headless=False, max_workers=10,
proxy_type=ProxyType.RESIDENTIAL)
# start_book(828, 857, store_choose_state=1, mode=ModeEnum.AUTOMATIC, headless=True)
# start_book(1210, 1211, store_choose_state=1, mode=ModeEnum.AUTOMATIC, headless=False, max_workers=3,
# proxy_type=ProxyType.MOBILE)
# recheck_the_captcha_error_contacts(store_type=1, mode=ModeEnum.AUTOMATIC, on_no_contact_found=lambda: None,
# headless=True)
+4 -3
View File
@@ -120,14 +120,14 @@
</tr>
<tr>
<td valign="top" style="padding-top: 15px;">You will be welcomed
on Dec 12, 2022 in our store at 24 Faubourg Saint-Honoré at
12:10 PM.
on Jan 16, 2023 in our store at 24 Faubourg Saint-Honoré at
5:40 PM.
</td>
</tr>
<tr>
<td valign="top" style="padding-top: 15px;">The given hour might
be subject to change. Please kindly follow up on your
appointment status on <a href="https://rendezvousparis.hermes.com/client/PXHT97">https://rendezvousparis.hermes.com/client/PXHT97</a>
appointment status on <a href="/client/97C7S9">https://rendezvousparis.hermes.com/client/97C7S9</a>
</td>
</tr>
<tr>
@@ -162,3 +162,4 @@
</table>
</body>
</html>
-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)